From: friendica Date: Wed, 26 Sep 2012 11:50:24 +0000 (-0700) Subject: declare array separately, doesn't work well when defined in hook X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41db3fb98364ec744333413309c6123d48723a51;p=friendica.git declare array separately, doesn't work well when defined in hook --- diff --git a/mod/ping.php b/mod/ping.php index 1c6a0ff5ce..9704fe7005 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -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) {