From 7ec1978f4191c419abd205812d87c00f97a44d90 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 9 Dec 2020 11:48:32 +0100 Subject: [PATCH] Fixed update_user --- pandora_console/include/functions.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index f79c56b764..4a7ca04ca7 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -424,16 +424,6 @@ function get_user_language($id_user=null) if ($quick_language) { $language = get_parameter('language', 0); - if (defined('METACONSOLE')) { - if ($id_user == null) { - $id_user = $config['id_user']; - } - - if ($language !== 0) { - update_user($id_user, ['language' => $language]); - } - } - if ($language === 'default') { return $config['language']; }