fix settings write
This commit is contained in:
parent
40c3981b86
commit
f2baa97680
@ -56,8 +56,8 @@ class Config extends dcNsProcess
|
||||
$s = new Settings();
|
||||
|
||||
try {
|
||||
foreach ($s->listSettings() as $key) {
|
||||
$s->writeSetting($key, $_POST[$key] ?? '');
|
||||
foreach ($s->listSettings() as $key => $value) {
|
||||
$s->writeSetting($key, $_POST[$key] ?? $value);
|
||||
}
|
||||
|
||||
dcPage::addSuccessNotice(
|
||||
|
@ -119,6 +119,6 @@ class Settings
|
||||
*/
|
||||
public function listSettings(): array
|
||||
{
|
||||
return array_keys(get_class_vars(Settings::class));
|
||||
return get_object_vars($this);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user