From c643cd063a2942ed1815dc4539bbb8538e235080 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Thu, 17 Sep 2020 19:14:41 +0300 Subject: [PATCH] Fix missing yield --- src/danog/MadelineProto/MTProtoTools/MinDatabase.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/MTProtoTools/MinDatabase.php b/src/danog/MadelineProto/MTProtoTools/MinDatabase.php index b08d3733..bdde393c 100644 --- a/src/danog/MadelineProto/MTProtoTools/MinDatabase.php +++ b/src/danog/MadelineProto/MTProtoTools/MinDatabase.php @@ -182,8 +182,9 @@ class MinDatabase implements TLCallback return $object; } $id = $this->API->getId($object); - if (yield $this->db[$id]) { - $new = \array_merge($object, $this->db[$id]); + $dbObject = yield $this->db[$id]; + if ($dbObject) { + $new = \array_merge($object, $dbObject); $new['_'] .= 'FromMessage'; $new['peer'] = (yield from $this->API->getInfo($new['peer']))['InputPeer']; if ($new['peer']['min']) {