From 321ce2191b4b2e675993e2302a52a0c7c8d0f224 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 15 Jun 2024 18:02:09 +0200 Subject: [PATCH] Add more global codes --- src/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.php b/src/Main.php index 6e84e65..8b1f07c 100644 --- a/src/Main.php +++ b/src/Main.php @@ -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; }