From ec1689dc6859283b889f3a0f49b3ff5d4bfdb886 Mon Sep 17 00:00:00 2001 From: desertwitch <24509509+desertwitch@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:11:47 +0200 Subject: [PATCH] update.php: null coalescing to elvis operator --- emhttp/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/update.php b/emhttp/update.php index a9cf1d592..14b6da724 100644 --- a/emhttp/update.php +++ b/emhttp/update.php @@ -59,9 +59,9 @@ if (isset($_POST['#file'])) { $default = []; if($file && isset($_POST['#default'])) { if(isset($_POST['#defaultfile'])) { - $default = @parse_ini_file("$docroot/plugins/".basename(dirname($file))."/".$_POST['#defaultfile'], $section) ?? []; + $default = @parse_ini_file("$docroot/plugins/".basename(dirname($file))."/".$_POST['#defaultfile'], $section) ?: []; } else { - $default = @parse_ini_file("$docroot/plugins/".basename(dirname($file))."/default.cfg", $section) ?? []; + $default = @parse_ini_file("$docroot/plugins/".basename(dirname($file))."/default.cfg", $section) ?: []; } }