From: Janusz Dobrowolski Date: Sat, 23 Mar 2013 10:12:53 +0000 (+0100) Subject: Cleanup again. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d636a900fefb1b41ba9a8f640247f5da4b53e41f;p=textcart.git Cleanup again. --- diff --git a/includes/hooks.inc b/includes/hooks.inc index df906a9..b27fc35 100644 --- a/includes/hooks.inc +++ b/includes/hooks.inc @@ -265,7 +265,7 @@ function hook_invoke_all($method, &$data, $opts=null) global $Hooks; $return = array(); - if (isset($Hooks[$ext]) + if (isset($Hooks)) { foreach($Hooks as $ext => $hook) if (method_exists($hook, $method)) { @@ -278,7 +278,7 @@ function hook_invoke_all($method, &$data, $opts=null) } set_ext_domain(); } - { + } return $return; } /*