From 41db3fb98364ec744333413309c6123d48723a51 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 26 Sep 2012 04:50:24 -0700 Subject: [PATCH] declare array separately, doesn't work well when defined in hook --- mod/ping.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5