1
0
Fork 0

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

View file

@ -71,7 +71,8 @@ function ping_init(&$a) {
if(count($r)) { if(count($r)) {
call_hooks('network_ping', array('items' => $r)); $arr = array('items' => $r);
call_hooks('network_ping', $arr);
foreach ($r as $it) { foreach ($r as $it) {