#11117 Fix unset values
This commit is contained in:
parent
ee427d2694
commit
1860baac0c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue