From ac7f078e8c560d3da43701859b51ff9d287538f9 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 21 Jun 2019 18:37:39 +0200 Subject: [PATCH] Backwards compatiblity fix --- src/danog/MadelineProto/MyTelegramOrgWrapper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/danog/MadelineProto/MyTelegramOrgWrapper.php b/src/danog/MadelineProto/MyTelegramOrgWrapper.php index f1d25e98..16f7817b 100644 --- a/src/danog/MadelineProto/MyTelegramOrgWrapper.php +++ b/src/danog/MadelineProto/MyTelegramOrgWrapper.php @@ -49,6 +49,9 @@ class MyTelegramOrgWrapper public function __wakeup() { + if ($this->settings === null) { + $this->settings = []; + } $this->datacenter = new DataCenter( new class($this->settings) {