From 1860baac0c660fa5d7fffb21a5e526a5286b0c3e Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Thu, 18 May 2023 16:30:17 +0200 Subject: [PATCH] #11117 Fix unset values --- pandora_console/include/auth/mysql.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index bb2e51bc73..9783c609b6 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -805,6 +805,9 @@ function update_user(string $id_user, array $values) unset($values['id_skin']); unset($values['section']); unset($values['default_event_filter']); + $update_user_metaconsole = true; + } else { + $update_user_metaconsole = false; } $output = db_process_sql_update('tusuario', $values, ['id_user' => $id_user]); @@ -844,6 +847,10 @@ function update_user(string $id_user, array $values) } } + if ($update_user_metaconsole === true) { + $output = 1; + } + return $output; }