Null file reference bugfix

This commit is contained in:
Daniil Gentili 2019-06-19 17:19:41 +02:00
parent 371020ea83
commit 09360e9308

View File

@ -542,7 +542,7 @@ class ReferenceDatabase implements TLCallback
if (!$this->refresh) {
$this->API->logger->logger("Using null file reference for location of type $locationType object {$location['_']}", \danog\MadelineProto\Logger::ULTRA_VERBOSE);
return 0;
return '';
}
throw new \danog\MadelineProto\Exception("Could not find file reference for location of type $locationType object {$location['_']}");