[-] BO : #PSTEST-214 : BugFix : Canceled, problem without multishop

This commit is contained in:
Francois Gaillard
2011-12-28 15:01:50 +00:00
parent c655fc9e82
commit b701eee796
+2 -2
View File
@@ -326,14 +326,14 @@ class blocktopmenu extends Module
{ {
if (!Configuration::isOverridenByCurrentContext('MOD_BLOCKTOPMENU_ITEMS')) if (!Configuration::isOverridenByCurrentContext('MOD_BLOCKTOPMENU_ITEMS'))
{ {
$items_shop = Configuration::get('MOD_BLOCKTOPMENU_ITEMS', NULL, (int)$this->context->shop->id_group_shop, (int)$this->context->shop->id); $items_shop = Configuration::get('MOD_BLOCKTOPMENU_ITEMS');
} }
} }
if (!isset($items_shop)) if (!isset($items_shop))
$items_shop = ''; $items_shop = '';
$items_shop = explode(',', $items_shop); $items_shop = explode(',', $items_shop);
$items_global = Configuration::get('MOD_BLOCKTOPMENU_ITEMS', NULL, (int)$this->context->shop->id_group_shop, (int)$this->context->shop->id); $items_global = Configuration::getGlobalValue('MOD_BLOCKTOPMENU_ITEMS');
$items_global = explode(',', $items_global); $items_global = explode(',', $items_global);
$items_global = array_diff($items_global, $items_shop); $items_global = array_diff($items_global, $items_shop);