mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
added error checking to install.js for categories
This commit is contained in:
@@ -275,7 +275,7 @@ var db = require('./database'),
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (!Array.isArray(categories)) {
|
||||
if (!Array.isArray(categories) || !categories.length) {
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user