[Pkg-owncloud-commits] [owncloud] 22/67: Remove warning when deleting all entries
David Prévot
taffit at moszumanska.debian.org
Fri Jun 27 23:58:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 909e505c2e24cbc06ce19e9642ce141a45e4808c
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Jun 23 15:57:45 2014 +0200
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.
---
apps/files/ajax/delete.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php
index f6aa4f0..9f8621f 100644
--- a/apps/files/ajax/delete.php
+++ b/apps/files/ajax/delete.php
@@ -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 ?
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list