diff --git a/src/Config.php b/src/Config.php index 67ac9b6..a7a7a8b 100644 --- a/src/Config.php +++ b/src/Config.php @@ -55,7 +55,11 @@ class Config extends dcNsProcess # -- Set settings -- try { foreach ($s->listSettings() as $key => $value) { - $s->writeSetting($key, $_POST[$key] ?? $value); + if (is_bool($value)) { + $s->writeSetting($key, !empty($_POST[$key])); + } else { + $s->writeSetting($key, $_POST[$key] ?? $value); + } } dcPage::addSuccessNotice(