filter invalid categories

v1.18.x
barisusakli 9 years ago
parent 70b7535a27
commit 3a6d5948ba

@ -75,7 +75,7 @@ function buildCategories(uid, callback) {
];
categories = categories.filter(function(category) {
return !category.link && !parseInt(category.parentCid, 10);
return category && !category.link && !parseInt(category.parentCid, 10);
});
categories.forEach(function(category) {

Loading…
Cancel
Save