]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not change behaviour of 'false'
authorJoas Schilling <nickvergessen@gmx.de>
Fri, 13 Feb 2015 14:18:07 +0000 (15:18 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Fri, 13 Feb 2015 14:18:07 +0000 (15:18 +0100)
apps/files/ajax/delete.php

index e891bb862088a01b12a618988b99fbc6dddfdb6d..6e9f5003f1eb7cf421c68458d667ec09c81f0120 100644 (file)
@@ -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) {