diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index bb5ad174..493f74cb 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -704,7 +704,9 @@ class MTProto public function sync_authorization($id) { - if (!isset($this->datacenter->sockets[$id])) return false; + if (!isset($this->datacenter->sockets[$id])) { + return false; + } $socket = $this->datacenter->sockets[$id]; if ($this->authorized === self::LOGGED_IN && $socket->authorized === false) { foreach ($this->datacenter->sockets as $authorized_dc_id => $authorized_socket) {