declare array separately, doesn't work well when defined in hook

This commit is contained in:
friendica 2012-09-26 04:50:24 -07:00
parent d1d5eca258
commit 41db3fb983
1 changed files with 2 additions and 1 deletions

View 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) {