From efe59db99a8d5f7fc8be993d46d3f4d143fb30dd Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 27 Dec 2017 12:00:36 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/MTProto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 396ea338..12bcf80a 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -698,7 +698,7 @@ class MTProto $socket = $this->datacenter->sockets[$id]; if ($this->authorized === self::LOGGED_IN && $socket->authorized === false) { foreach ($this->datacenter->sockets as $authorized_dc_id => $authorized_socket) { - if ($authorized_socket->temp_auth_key !== NULL && $authorized_socket->auth_key !== NULL && $authorized_socket->authorized === true && $this->authorized === self::LOGGED_IN && $socket->authorized === false) { + if ($authorized_socket->temp_auth_key !== null && $authorized_socket->auth_key !== null && $authorized_socket->authorized === true && $this->authorized === self::LOGGED_IN && $socket->authorized === false) { try { \danog\MadelineProto\Logger::log(['Trying to copy authorization from dc '.$authorized_dc_id.' to dc '.$id]); $exported_authorization = $this->method_call('auth.exportAuthorization', ['dc_id' => preg_replace('|_.*|', '', $id)], ['datacenter' => $authorized_dc_id]);