if no categories found return empty array

v1.18.x
barisusakli 11 years ago
parent 257491801d
commit 364d55938c

@ -183,7 +183,7 @@ var db = require('./database'),
}
if (!Array.isArray(cids) || !cids.length) {
return callback(null, {categories : []});
return callback(null, []);
}
Categories.getCategoriesData(cids, callback);
@ -197,7 +197,7 @@ var db = require('./database'),
}
if (!Array.isArray(cids) || !cids.length) {
return callback(null, {categories : []});
return callback(null, []);
}
Categories.getCategories(cids, uid, function(err, categories) {

Loading…
Cancel
Save