Commit b5a7a3cb authored by Jack'lul's avatar Jack'lul

Fix warning when selectTelegramUpdate() returns bool

parent 0cd6bad3
...@@ -458,7 +458,8 @@ class Telegram ...@@ -458,7 +458,8 @@ class Telegram
$this->getCommandsList(); $this->getCommandsList();
//Make sure we don't try to process update that was already processed //Make sure we don't try to process update that was already processed
if (count(DB::selectTelegramUpdate(1, $this->update->getUpdateId())) === 1) { $last_id = DB::selectTelegramUpdate(1, $this->update->getUpdateId());
if ($last_id && count($last_id) === 1) {
TelegramLog::debug('Duplicate update received, processing aborted!'); TelegramLog::debug('Duplicate update received, processing aborted!');
return Request::emptyResponse(); return Request::emptyResponse();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment