From c458e059d536035f336ff17bf37a8b246ffc7325 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Tue, 22 Oct 2013 16:18:50 +0200 Subject: [PATCH] // Fix hook list problem on multishop --- classes/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Hook.php b/classes/Hook.php index 44c493637..3f4cfd6fc 100644 --- a/classes/Hook.php +++ b/classes/Hook.php @@ -278,7 +278,7 @@ class HookCore extends ObjectModel public static function getHookModuleExecList($hook_name = null) { $context = Context::getContext(); - $cache_id = 'hook_module_exec_list'.((isset($context->customer)) ? '_'.$context->customer->id : ''); + $cache_id = 'hook_module_exec_list_'.(int)$context->shop->id.((isset($context->customer)) ? '_'.$context->customer->id : ''); if (!Cache::isStored($cache_id) || $hook_name == 'displayPayment') { $frontend = true;