fix write settings

This commit is contained in:
Jean-Christian Denis 2023-04-29 10:52:52 +02:00
parent fdd0a93193
commit e49aeb7fdb
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -55,8 +55,8 @@ class Config extends dcNsProcess
$s = new Settings();
try {
foreach ($s->listSettings() as $key) {
$s->writeSetting($key, $_POST['ts_' . $key] ?? '');
foreach ($s->listSettings() as $key => $value) {
$s->writeSetting($key, $_POST['ts_' . $key] ?? $value);
}
dcPage::addSuccessNotice(