From f9c8b87e01c36aadf85c4015ffab8a2d0a1cbae2 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 23 Mar 2013 11:12:53 +0100 Subject: [PATCH] Cleanup again. --- includes/hooks.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /* -- 2.30.2