From 07679980229313bf1df0d455d99364734a17e697 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 23 Sep 2014 13:34:49 -0400 Subject: [PATCH] closes #2124 --- src/controllers/admin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/admin.js b/src/controllers/admin.js index ab28005db7..8ba54380d8 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -140,6 +140,9 @@ function filterAndRenderCategories(req, res, next, active) { } categoryData = categoryData.filter(function (category) { + if (!category) { + return false; + } return active ? !category.disabled : category.disabled; });