1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-04 16:39:34 +00:00

remove unnecessary issets etc.

This commit is contained in:
Rouji 2021-08-29 23:17:46 +02:00
parent 11a2ff253f
commit 59afc5373f

View File

@ -360,7 +360,7 @@ if (isset($_FILES['file']['name']) &&
is_uploaded_file($_FILES['file']['tmp_name'])) is_uploaded_file($_FILES['file']['tmp_name']))
{ {
//file was uploaded, store it //file was uploaded, store it
$formatted = isset($_GET['formatted']) || isset($_POST['formatted']); $formatted = isset($_REQUEST['formatted']);
store_file($_FILES['file']['name'], store_file($_FILES['file']['name'],
$_FILES['file']['tmp_name'], $_FILES['file']['tmp_name'],
$formatted); $formatted);
@ -373,7 +373,7 @@ else if (isset($_GET['hupl']))
{ {
send_hupl_config(); send_hupl_config();
} }
else if (isset($argv[1]) && $argv[1] === 'purge') else if ($argv[1] ?? null === 'purge')
{ {
purge_files(); purge_files();
} }