mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 04:08:59 +01:00
PHP 5 fixes
This commit is contained in:
parent
88592caab1
commit
60d1485d46
@ -54,7 +54,8 @@ trait Loop
|
||||
}
|
||||
}
|
||||
if ($this->loop_callback !== null) {
|
||||
($this->loop_callback)();
|
||||
$callback = $this->loop_callback;
|
||||
$callback();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -65,7 +66,8 @@ trait Loop
|
||||
$this->settings['updates']['callback']($update['update']);
|
||||
}
|
||||
if ($this->loop_callback !== null) {
|
||||
($this->loop_callback)();
|
||||
$callback = $this->loop_callback;
|
||||
$callback();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user