Update update.php

This commit is contained in:
dlandon
2024-02-13 11:39:33 -06:00
parent 39e2381b8f
commit 1fbd1b0a98
+1 -1
View File
@@ -60,8 +60,8 @@ if (isset($_POST['#file'])) {
}
if ($save) {
$text = "";
$keys = is_file($file) ? (parse_ini_file($file, $section) ?: []) : [];
if ($section) {
$keys = is_file($file) ? (parse_ini_file($file, $section) ?: []) : [];
foreach ($_POST as $key => $value) if ($key[0]!='#') $keys[$section][$key] = $default[$section][$key] ?? $value;
foreach ($keys as $section => $block) {
$text .= "[$section]\n";