From 5c2619f3cc1d045fb693105d604fb03311805d33 Mon Sep 17 00:00:00 2001 From: Thibaud Chauviere Date: Mon, 12 May 2014 11:21:16 +0200 Subject: [PATCH] [-] MO : blocktopmenu - Correct multiple hookTop menu links duplicates #PSCSX-2057 --- blocktopmenu.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocktopmenu.php b/blocktopmenu.php index 7513581..8bd63d6 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -583,7 +583,8 @@ class Blocktopmenu extends Module $this->page_name = Dispatcher::getInstance()->getController(); if (!$this->isCached('blocktopmenu.tpl', $this->getCacheId())) { - $this->makeMenu(); + if (Tools::isEmpty($this->_menu)) + $this->makeMenu(); $this->smarty->assign('MENU_SEARCH', Configuration::get('MOD_BLOCKTOPMENU_SEARCH')); $this->smarty->assign('MENU', $this->_menu); $this->smarty->assign('this_path', $this->_path);