From 59afc5373fb3252ac9f8058881c065ab89153fa5 Mon Sep 17 00:00:00 2001 From: Rouji Date: Sun, 29 Aug 2021 23:17:46 +0200 Subject: [PATCH] remove unnecessary issets etc. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 45c7976..57b9c99 100755 --- a/index.php +++ b/index.php @@ -360,7 +360,7 @@ if (isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name'])) { //file was uploaded, store it - $formatted = isset($_GET['formatted']) || isset($_POST['formatted']); + $formatted = isset($_REQUEST['formatted']); store_file($_FILES['file']['name'], $_FILES['file']['tmp_name'], $formatted); @@ -373,7 +373,7 @@ else if (isset($_GET['hupl'])) { send_hupl_config(); } -else if (isset($argv[1]) && $argv[1] === 'purge') +else if ($argv[1] ?? null === 'purge') { purge_files(); }