From ebad56a800cae72c642677549e0a27420a355e03 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 18 Nov 2013 14:29:32 +0100 Subject: [PATCH] // Fix small error --- modules/blockcategories/blockcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 67669e8a5..69851cd19 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -217,7 +217,7 @@ class BlockCategories extends Module $resultIds[$row['id_category']] = &$row; } - $blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category && (!isset($params['is_top_menu']) || !$params['is_top_menu']) ? $category->id : null)); + $blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category ? $category->id : null)); $this->smarty->assign('blockCategTree', $blockCategTree); if ($category)