Node.js based forum software built for the modern web
prevent crash in getChildren
barisusakli26b2ef154362
diff --git a/src/categories.js b/src/categories.jsindex eb65878864..c5078d711a 100644--- a/src/categories.js+++ b/src/categories.js@@ -288,7 +288,7 @@ var async = require('async'),// Filter categories to isolate children, and remove disabled categoriesasync.map(cids, function(cid, next) {next(null, categories.filter(function(category) {- return parseInt(category.parentCid, 10) === parseInt(cid, 10) && !category.disabled;+ return category && parseInt(category.parentCid, 10) === parseInt(cid, 10) && !category.disabled;}));}, next);}