Skip to content
Snippets Groups Projects
Commit 909e505c authored by Vincent Petry's avatar Vincent Petry
Browse files

Remove warning when deleting all entries

When deleting all entries, only "allfiles" is defined but not "file" or
"files", which caused a PHP warning to be logged.
parent 8c820982
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,11 @@ OCP\JSON::callCheck();
// Get data
$dir = stripslashes($_POST["dir"]);
$files = isset($_POST["file"]) ? $_POST["file"] : $_POST["files"];
$allFiles = isset($_POST["allfiles"]) ? $_POST["allfiles"] : false;
if ($allFiles === 'true') {
$allFiles = true;
} else {
$files = isset($_POST["file"]) ? $_POST["file"] : $_POST["files"];
}
// delete all files in dir ?
......
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