// Fix small error

This commit is contained in:
Jerome Nadaud
2013-11-18 14:29:32 +01:00
parent 5106a5f1e3
commit ebad56a800
+1 -1
View File
@@ -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)