1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 08:18:59 +01:00

PHP 5 fixes

This commit is contained in:
Daniil Gentili 2018-03-30 09:27:21 +00:00
parent 88592caab1
commit 60d1485d46

View File

@ -54,7 +54,8 @@ trait Loop
} }
} }
if ($this->loop_callback !== null) { if ($this->loop_callback !== null) {
($this->loop_callback)(); $callback = $this->loop_callback;
$callback();
} }
} }
} else { } else {
@ -65,7 +66,8 @@ trait Loop
$this->settings['updates']['callback']($update['update']); $this->settings['updates']['callback']($update['update']);
} }
if ($this->loop_callback !== null) { if ($this->loop_callback !== null) {
($this->loop_callback)(); $callback = $this->loop_callback;
$callback();
} }
} }
} }