Fixed update_user

This commit is contained in:
Daniel Maya 2020-12-09 11:48:32 +01:00
parent 3a530d9a33
commit 7ec1978f41
1 changed files with 0 additions and 10 deletions

View File

@ -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'];
}