From fd5d7e122ef71f3236d8ba1e8b73c55d1c86e741 Mon Sep 17 00:00:00 2001 From: dlandon Date: Wed, 14 Feb 2024 17:28:29 -0600 Subject: [PATCH] Change requested by Ronald. --- emhttp/update.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/emhttp/update.php b/emhttp/update.php index ab50d28cf..818024a97 100644 --- a/emhttp/update.php +++ b/emhttp/update.php @@ -51,11 +51,7 @@ if (isset($_POST['#file'])) { $default = ($file && isset($_POST['#default'])) ? @parse_ini_file("$docroot/plugins/".basename(dirname($file))."/default.cfg", $section) : []; // if the file is not a raw file, it can be parsed - if (! $raw_file) { - $keys = is_file($file) ? (parse_ini_file($file, $section) ?: []) : []; - } else { - $keys = []; - } + $keys = (is_file($file) && !$raw_file) ? (parse_ini_file($file, $section) ?: []) : []; // the 'save' switch can be reset by the include file to disallow settings saving $save = true;