|
|
@ -315,8 +315,8 @@ var db = require('./database'),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async.map(categories, function(category, next) {
|
|
|
|
async.map(categories, function(category, next) {
|
|
|
|
if (!category) {
|
|
|
|
if (!category || !parseInt(category.cid, 10)) {
|
|
|
|
return next(null, category);
|
|
|
|
return next(null, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
category.name = validator.escape(category.name);
|
|
|
|
category.name = validator.escape(category.name);
|
|
|
|
category.description = validator.escape(category.description);
|
|
|
|
category.description = validator.escape(category.description);
|
|
|
|