Do not change behaviour of 'false'

This commit is contained in:
Joas Schilling 2015-02-13 15:18:07 +01:00
parent 4032c7b685
commit 200c0c89dc
1 changed files with 2 additions and 2 deletions

View 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) {