diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-25 11:38:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-25 11:38:05 +0200 |
commit | 6a25e5f0eb56d3c712a2025a2df590a6da651dab (patch) | |
tree | 2264a05d230951d39ef165002d508d8b4c01a78a | |
parent | de4236bc4ae1a02141e1bf6d9ab60a9836cd965a (diff) | |
parent | 59b87fade55b49289287d1489950708187e438fd (diff) | |
download | nextcloud-server-6a25e5f0eb56d3c712a2025a2df590a6da651dab.tar.gz nextcloud-server-6a25e5f0eb56d3c712a2025a2df590a6da651dab.zip |
Merge pull request #547 from nextcloud/fix-restore-all-files
Fix error message while restoring all files
-rw-r--r-- | apps/files_trashbin/ajax/undelete.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php index 9095c551b4f..ba671325372 100644 --- a/apps/files_trashbin/ajax/undelete.php +++ b/apps/files_trashbin/ajax/undelete.php @@ -29,7 +29,6 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); \OC::$server->getSession()->close(); -$files = $_POST['files']; $dir = '/'; if (isset($_POST['dir'])) { $dir = rtrim((string)$_POST['dir'], '/'). '/'; @@ -50,7 +49,7 @@ if (isset($_POST['allfiles']) && (string)$_POST['allfiles'] === 'true') { $list[] = $fileName; } } else { - $list = json_decode($files); + $list = json_decode($_POST['files']); } $error = array(); |