Node.js based forum software built for the modern web
Delete errors
Сергей Савельевce743be779d4
diff --git a/src/controllers/admin.js b/src/controllers/admin.jsindex 91e0a65972..c659c53446 100644--- a/src/controllers/admin.js+++ b/src/controllers/admin.js@@ -158,15 +158,15 @@ adminController.categories.getAll = function(req, res, next) {return next(err);}- plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categoryData}, function(err, data) {+ plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categoryData}, function(err, data) {if (err) {return next(err);}-+data.categories.filter(Boolean).forEach(function(category) {(category.disabled ? disabled : active).push(category);});-+res.render('admin/manage/categories', {active: active,disabled: disabled