diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-13 15:18:07 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-13 15:18:07 +0100 |
commit | 200c0c89dc750c51eefd81dd929f0eaa44e67d01 (patch) | |
tree | 1e5ec19134e6cfbd08161ec8d99c8ccdefa60582 /apps/files/ajax | |
parent | 4032c7b685fe082990b9fefe6ef390182de70c7c (diff) | |
download | nextcloud-server-200c0c89dc750c51eefd81dd929f0eaa44e67d01.tar.gz nextcloud-server-200c0c89dc750c51eefd81dd929f0eaa44e67d01.zip |
Do not change behaviour of 'false'
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/delete.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php index e891bb86208..6e9f5003f1e 100644 --- a/apps/files/ajax/delete.php +++ b/apps/files/ajax/delete.php @@ -7,10 +7,10 @@ OCP\JSON::callCheck(); // Get data $dir = isset($_POST['dir']) ? (string)$_POST['dir'] : ''; -$allFiles = isset($_POST["allfiles"]) ? (bool)$_POST["allfiles"] : false; +$allFiles = isset($_POST["allfiles"]) ? (string)$_POST["allfiles"] : false; // delete all files in dir ? -if ($allFiles === true) { +if ($allFiles === 'true') { $files = array(); $fileList = \OC\Files\Filesystem::getDirectoryContent($dir); foreach ($fileList as $fileInfo) { |