Update settings page and add options for future phone reliability features
This commit is contained in:
parent
50dff066d0
commit
d0e17567c3
|
@ -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
Loading…
Reference in New Issue