declare array separately, doesn't work well when defined in hook
This commit is contained in:
parent
d1d5eca258
commit
41db3fb983
|
@ -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) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue