Skip to content

Commit 6937ee1

Browse files
authored
bugs fixed
1 parent 0144363 commit 6937ee1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,16 +505,16 @@ private function process($update, $check_time=true) {
505505

506506
if (in_array('all', $events_type)) {
507507
$call = $this->events['all'];
508-
call_user_func_array($call, ["type"=> $type, "data"=> $data]);
508+
call_user_func_array($call, [$type, $data]);
509509
}
510510

511511
if (in_array($type, $events_type)) {
512512
$call = $this->events[$type];
513-
call_user_func_array($call, ["data"=> $data]);
513+
call_user_func_array($call, [$data]);
514514
}
515515

516516
if ($type == 'unknown') {
517-
call_user_func_array($call, ["type"=> 'update', "data"=> $update]);
517+
call_user_func_array($call, ['update', $update]);
518518
}
519519

520520
return true;

0 commit comments

Comments
 (0)