]> git.mxchange.org Git - friendica.git/blobdiff - include/plugin.php
Fix unused code in include
[friendica.git] / include / plugin.php
index 276c36bd2181746d1c76ce5120e434a674ad8c19..34f8c13716b44e65495b939da40b8761a920dba1 100644 (file)
@@ -182,14 +182,15 @@ function load_hooks() {
  * @param string $name of the hook to call
  * @param string|array &$data to transmit to the callback handler
  */
-function call_hooks($name, &$data = null) {
-       $stamp1 = microtime(true);
-
+function call_hooks($name, &$data = null)
+{
        $a = get_app();
 
-       if (is_array($a->hooks) && array_key_exists($name, $a->hooks))
-               foreach ($a->hooks[$name] as $hook)
+       if (is_array($a->hooks) && array_key_exists($name, $a->hooks)) {
+               foreach ($a->hooks[$name] as $hook) {
                        call_single_hook($a, $name, $hook, $data);
+               }
+       }
 }
 
 /**