#11117 Fix unset values

This commit is contained in:
miguel angel rasteu 2023-05-18 16:30:17 +02:00
parent ee427d2694
commit 1860baac0c
1 changed files with 7 additions and 0 deletions

View File

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