Add warning

This commit is contained in:
Daniil Gentili 2018-12-28 16:20:03 +01:00
parent 911f6a9d5b
commit 16087b4863

View File

@ -213,6 +213,10 @@ class ReferenceDatabase implements TLCallback
return false;
}
if (!isset($location['file_reference'])) {
$this->API->logger->logger("Object {$location['_']} does not have reference", \danog\MadelineProto\Logger::ERROR);
return false;
}
$key = count($this->cacheContexts) - 1;
switch ($location['_']) {
case 'document':