// Fixed warning and prepared next commit

This commit is contained in:
Damien Metzger
2013-10-31 15:09:14 +01:00
parent a97e3927df
commit 9a1b45a8e6
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ class BlockCategories extends Module
$resultIds[$row['id_category']] = &$row;
}
$blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, (isset($category) ? $category->id : null));
$blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category ? $category->id : null));
$this->smarty->assign('blockCategTree', $blockCategTree);
if ($category)