mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
type checking 'plugin' when loading
This commit is contained in:
@@ -71,7 +71,7 @@ var fs = require('fs'),
|
|||||||
plugins.push(meta.config['theme:id']);
|
plugins.push(meta.config['theme:id']);
|
||||||
|
|
||||||
async.each(plugins, function(plugin, next) {
|
async.each(plugins, function(plugin, next) {
|
||||||
if (!plugin) {
|
if (!plugin || typeof plugin !== 'string') {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user