diff --git a/src/plugins.js b/src/plugins.js index 278b221d02..832c43fef1 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -500,7 +500,7 @@ var fs = require('fs'), async.each(installedPlugins, function(plugin, next) { pluginMap[plugin.id] = pluginMap[plugin.id] || {}; - pluginMap[plugin.id].name = plugin.id; + pluginMap[plugin.id].id = pluginMap[plugin.id].id || plugin.id; pluginMap[plugin.id].description = plugin.description; pluginMap[plugin.id].url = plugin.url; pluginMap[plugin.id].installed = true; @@ -521,7 +521,9 @@ var fs = require('fs'), var pluginArray = []; for (var key in pluginMap) { - pluginArray.push(pluginMap[key]); + if (pluginMap.hasOwnProperty(key)) { + pluginArray.push(pluginMap[key]); + } } pluginArray.sort(function(a, b) {