1
0
mirror of https://github.com/danog/telerpc.git synced 2024-11-26 12:04:47 +01:00

Add more global codes

This commit is contained in:
Daniil Gentili 2024-06-15 18:02:09 +02:00
parent a17dfbb8c4
commit 321ce2191b

View File

@ -108,7 +108,7 @@ final class Main
$r = [];
$errors = [];
$bot_only = [];
$q->fetchAll(PDO::FETCH_FUNC, function ($method, $code, $error) use (&$r, &$bot_only, $core) {
$q->fetchAll(PDO::FETCH_FUNC, function ($method, $code, $error) use (&$r, &$bot_only, &$errors, $core) {
if ($core && ($error === 'UPDATE_APP_TO_LOGIN' || $error === 'UPDATE_APP_REQUIRED')) {
return;
}