Node.js based forum software built for the modern web
fix null parents
barisusakli3d5e72bbc8c6
diff --git a/src/categories.js b/src/categories.jsindex 797a3cc823..f3c9ee7316 100644--- a/src/categories.js+++ b/src/categories.js@@ -315,8 +315,8 @@ var db = require('./database'),}async.map(categories, function(category, next) {- if (!category) {- return next(null, category);+ if (!category || !parseInt(category.cid, 10)) {+ return next(null, null);}category.name = validator.escape(category.name);category.description = validator.escape(category.description);