From 256a847af73a8eee3c00be4bf1122cca48e98a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 15 May 2024 12:57:29 -0300 Subject: [PATCH] Fix invalid value for sql_query global variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #19162 Signed-off-by: MaurĂ­cio Meneghini Fauth --- src/Server/Privileges.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server/Privileges.php b/src/Server/Privileges.php index a8ddb9025f..e2538918e0 100644 --- a/src/Server/Privileges.php +++ b/src/Server/Privileges.php @@ -2220,7 +2220,7 @@ class Privileges * @param string|null $password password * @param bool $isMenuwork is_menuwork set? * - * @return array{Message|null, string[], string[]|null, string|null, bool} + * @return array{Message|null, string[], string[]|null, string, bool} */ public function addUser( string|array|null $dbname, @@ -2232,7 +2232,7 @@ class Privileges $message = null; $queries = []; $queriesForDisplay = null; - $sqlQuery = null; + $sqlQuery = ''; if (! isset($_POST['adduser_submit']) && ! isset($_POST['change_copy'])) { return [