mirror of
https://github.com/danog/telerpc.git
synced 2024-11-30 04:38:57 +01:00
Add more global codes
This commit is contained in:
parent
a17dfbb8c4
commit
321ce2191b
@ -108,7 +108,7 @@ final class Main
|
|||||||
$r = [];
|
$r = [];
|
||||||
$errors = [];
|
$errors = [];
|
||||||
$bot_only = [];
|
$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')) {
|
if ($core && ($error === 'UPDATE_APP_TO_LOGIN' || $error === 'UPDATE_APP_REQUIRED')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user