[-] MO: Fix active category check

This commit is contained in:
Thibaud Chauviere
2015-07-07 10:21:05 +02:00
parent 6816b775ad
commit e3c2e31e2f
+3 -3
View File
@@ -610,9 +610,9 @@ class Blocktopmenu extends Module
$link = $this->context->link->getPageLink('index'); $link = $this->context->link->getPageLink('index');
/* Whenever a category is not active we shouldnt display it to customer */ /* Whenever a category is not active we shouldnt display it to customer */
if ((bool)$cat->active === false) { if ((bool)$category['active'] === false) {
break; break;
} }
$html .= '<li'.(($this->page_name == 'category' $html .= '<li'.(($this->page_name == 'category'
&& (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>'; && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';