]> git.mxchange.org Git - simple-upload.git/commitdiff
Only add files if feature for listing them is enabled.
authorRoland Häder <roland@mxchange.org>
Wed, 30 Mar 2016 12:22:19 +0000 (14:22 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 30 Mar 2016 12:22:19 +0000 (14:22 +0200)
index.php

index 61c6488e36feee6746f2da70b0cbb8daf90169fe..2d3bbe01f2923bea4118297cb8053204999b0834 100644 (file)
--- a/index.php
+++ b/index.php
 
                // 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";