Skip to content
Snippets Groups Projects
Commit e8d5a23e authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #23802: show message if no category selected

parent 2d96d762
Branches
Tags
3 merge requests!896Master,!846Dev#23802 add sito arborescence,!839Dev#23802 add sito arborescence
......@@ -30,6 +30,9 @@ class ZendAfi_View_Helper_SitoTree extends ZendAfi_View_Helper_BaseHelper {
protected function renderHierarchicalCategories($category, $max_display) {
if (!$category)
return $this->_('Aucune catégorie sélectionnée.');
$html = '';
$children = $category->getChildren();
foreach (array_slice($children, 0, $max_display) as $child_category)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment