From 48686e0efac9d1bc4be3517b006d910654e86db6 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 14 Jun 2019 12:36:08 +0200 Subject: [PATCH] Bugfix --- src/danog/MadelineProto/API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index 251a6954..200fe909 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -239,7 +239,7 @@ class API extends APIFactory public function my_get_self() { - return $this->API->authorization['user']; + return isset($this->API) && isset($this->API->authorization['user']) ? $this->API->authorization['user'] : false; } public function APIFactory()