diff --git a/blocktopmenu.php b/blocktopmenu.php index 2986742..0241a31 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -610,9 +610,9 @@ class Blocktopmenu extends Module $link = $this->context->link->getPageLink('index'); /* Whenever a category is not active we shouldnt display it to customer */ - if ((bool)$cat->active === false) { - break; - } + if ((bool)$category['active'] === false) { + break; + } $html .= 'page_name == 'category' && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';