// 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:
+1
-1
@@ -225,7 +225,7 @@ class HookCore extends ObjectModel
|
|||||||
|
|
||||||
// Hook list for live edit
|
// Hook list for live edit
|
||||||
$ctrl = Context::getContext()->controller;
|
$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;
|
Context::getContext()->controller->hook_list[Hook::getIdByName($hook_name)] = $hook_name;
|
||||||
|
|
||||||
$live_edit = false;
|
$live_edit = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user