From e7dd954720631e62963ecb4caf74856ec956162c Mon Sep 17 00:00:00 2001 From: titiscan Date: Mon, 14 Mar 2016 12:01:30 +0100 Subject: [PATCH] Update blocktopmenu.php if parent of a root categorie is not 0, it doesn't display any category --- blocktopmenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocktopmenu.php b/blocktopmenu.php index 5994b13..a334439 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -1242,7 +1242,7 @@ public function customGetNestedCategories($shop_id, $root_category = null, $id_l $current = &$buff[$row['id_category']]; $current = $row; - if ($row['id_parent'] == 0) { + if ($row['is_root_category'] == 1) { $categories[$row['id_category']] = &$current; } else { $buff[$row['id_parent']]['children'][$row['id_category']] = &$current;