Unverified Commit bb0a5eee authored by Jack'lul's avatar Jack'lul Committed by Armando Lüscher

Fix when not using DB

parent 0bdd7a73
...@@ -482,7 +482,7 @@ class DB ...@@ -482,7 +482,7 @@ class DB
$update_id = $update->getUpdateId(); $update_id = $update->getUpdateId();
$update_type = $update->getUpdateType(); $update_type = $update->getUpdateType();
if (count(self::selectTelegramUpdate(1, $update->getUpdateId())) === 1) { if (self::isDbConnected() && count(self::selectTelegramUpdate(1, $update->getUpdateId())) === 1) {
throw new TelegramException('Duplicate update received!'); throw new TelegramException('Duplicate update received!');
} }
......
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