From: Janusz Dobrowolski Date: Sat, 23 Mar 2013 10:12:53 +0000 (+0100) Subject: Cleanup again. X-Git-Tag: 2.3-final~291 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f9c8b87e01c36aadf85c4015ffab8a2d0a1cbae2;p=fa-stable.git Cleanup again. --- diff --git a/includes/hooks.inc b/includes/hooks.inc index df906a91..b27fc355 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; } /*