fix null parents

v1.18.x
barisusakli 10 years ago
parent 9909f8ba79
commit 3d5e72bbc8

@ -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);

Loading…
Cancel
Save