Update settings page and add options for future phone reliability features

This commit is contained in:
osaajani 2024-10-22 22:28:24 +02:00
parent 50dff066d0
commit d0e17567c3
2 changed files with 917 additions and 428 deletions

View File

@ -91,6 +91,12 @@ namespace controllers\internals;
$all_success = true; $all_success = true;
foreach (USER_DEFAULT_SETTINGS as $name => $value) foreach (USER_DEFAULT_SETTINGS as $name => $value)
{ {
// Ignore if already existing settings
if (count($this->get_by_name_for_user($id_user, $name)))
{
continue;
}
$success = $this->create($id_user, $name, $value); $success = $this->create($id_user, $name, $value);
$all_success = ($all_success && $success); $all_success = ($all_success && $success);
} }

File diff suppressed because it is too large Load Diff