Cleanup again.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Sat, 23 Mar 2013 10:12:53 +0000 (11:12 +0100)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Sat, 23 Mar 2013 10:12:53 +0000 (11:12 +0100)
includes/hooks.inc

index df906a91d4cb9194bb544b48d63981564b9e1def..b27fc35501788654afcd15ab69df50d23d5ad73c 100644 (file)
@@ -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;
 }
 /*