// fixed hook::exec when no controller exists, bis

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11250 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-12-15 11:09:34 +00:00
parent 5aea0ddca0
commit f5aefc80ad
+1 -1
View File
@@ -225,7 +225,7 @@ class HookCore extends ObjectModel
// Hook list for live edit
$ctrl = Context::getContext()->controller;
if (is_object($ctrl) && !in_array($hook_name, $ctrl->controller->hook_list))
if ($ctrl && !in_array($hook_name, $ctrl->hook_list));
Context::getContext()->controller->hook_list[Hook::getIdByName($hook_name)] = $hook_name;
$live_edit = false;