From 3ec3bf587efd7a1608415fc78ebc008afc553d55 Mon Sep 17 00:00:00 2001 From: Vincent Augagneur Date: Wed, 23 Oct 2013 09:38:22 +0200 Subject: [PATCH] //small fix on cache_id in classe Hook --- classes/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Hook.php b/classes/Hook.php index 3f4cfd6fc..47112546c 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_'.(int)$context->shop->id.((isset($context->customer)) ? '_'.$context->customer->id : ''); + $cache_id = 'hook_module_exec_list_'.(isset($context->shop->id) ? '_'.$context->shop->id : '' ).((isset($context->customer)) ? '_'.$context->customer->id : ''); if (!Cache::isStored($cache_id) || $hook_name == 'displayPayment') { $frontend = true;