mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 20:54:42 +01:00
Fix
This commit is contained in:
parent
3c991dc679
commit
d8fe777b6f
@ -315,7 +315,7 @@ final class PeerDatabase implements TLCallback
|
|||||||
}
|
}
|
||||||
$result = $this->usernames[$username];
|
$result = $this->usernames[$username];
|
||||||
$id = $result === null ? $result : (int) $result;
|
$id = $result === null ? $result : (int) $result;
|
||||||
if (!$this->isset($id)) {
|
if ($id !== null && !$this->isset($id)) {
|
||||||
$this->API->logger("No peer entry for cached username @$username => {$id}, dropping entry!");
|
$this->API->logger("No peer entry for cached username @$username => {$id}, dropping entry!");
|
||||||
unset($this->usernames[$username]);
|
unset($this->usernames[$username]);
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user