]> git.mxchange.org Git - friendica.git/commitdiff
declare array separately, doesn't work well when defined in hook
authorfriendica <info@friendica.com>
Wed, 26 Sep 2012 11:50:24 +0000 (04:50 -0700)
committerfriendica <info@friendica.com>
Wed, 26 Sep 2012 11:50:24 +0000 (04:50 -0700)
mod/ping.php

index 1c6a0ff5ce83ee90bea8478d97fcbf733b7972af..9704fe7005a000ea56ec12377ae578d3978896e5 100644 (file)
@@ -71,7 +71,8 @@ function ping_init(&$a) {
 
                if(count($r)) {         
 
-                       call_hooks('network_ping', array('items' => $r));
+                       $arr = array('items' => $r);
+                       call_hooks('network_ping', $arr);
 
                        foreach ($r as $it) {