From: Roland Häder Date: Wed, 30 Mar 2016 12:22:19 +0000 (+0200) Subject: Only add files if feature for listing them is enabled. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6808cf86792a48e4a4195f47f11057383246ab67;p=simple-upload.git Only add files if feature for listing them is enabled. --- diff --git a/index.php b/index.php index 61c6488..2d3bbe0 100644 --- a/index.php +++ b/index.php @@ -193,7 +193,7 @@ // Moving uploaded file OK if (move_uploaded_file($file_data['tmp_name'], $file_data['upload_target_file'])) { - if ($settings['allow_deletion'] || $settings['allow_private']) + if ($settings['listfiles'] && ($settings['allow_deletion'] || $settings['allow_private'])) $_SESSION['upload_user_files'][] = $file_data['target_file_name']; echo $settings['url'] . $file_data['target_file_name'] . "\n";