Skip to content

Node.js based forum software built for the modern web

forgot parseInt

barisusakli9cef1ffe9915
diff --git a/src/categories.js b/src/categories.js
index 4695f73278..f2bc20a06f 100644
--- a/src/categories.js
+++ b/src/categories.js
@@ -303,7 +303,7 @@ var async = require('async'),
categoriesData = _categoriesData;
parentCids = categoriesData.filter(function(category) {
- return category && category.hasOwnProperty('parentCid') && category.parentCid;
+ return category && category.hasOwnProperty('parentCid') && parseInt(category.parentCid, 10);
}).map(function(category) {
return parseInt(category.parentCid, 10);
});