Skip to content
Snippets Groups Projects
Commit 200c0c89 authored by Joas Schilling's avatar Joas Schilling
Browse files

Do not change behaviour of 'false'

parent 4032c7b6
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment