From 1fbd1b0a98841889b938ccb50a8a984558969e39 Mon Sep 17 00:00:00 2001 From: dlandon Date: Tue, 13 Feb 2024 11:39:33 -0600 Subject: [PATCH] Update update.php --- emhttp/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/update.php b/emhttp/update.php index 669a86b85..c16b7c3eb 100644 --- a/emhttp/update.php +++ b/emhttp/update.php @@ -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";