Skip to content

Commit

Permalink
Merge pull request #547 from nextcloud/fix-restore-all-files
Browse files Browse the repository at this point in the history
Fix error message while restoring all files
  • Loading branch information
nickvergessen authored Jul 25, 2016
2 parents de4236b + 59b87fa commit 6a25e5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/files_trashbin/ajax/undelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
OCP\JSON::callCheck();
\OC::$server->getSession()->close();

$files = $_POST['files'];
$dir = '/';
if (isset($_POST['dir'])) {
$dir = rtrim((string)$_POST['dir'], '/'). '/';
Expand All @@ -50,7 +49,7 @@
$list[] = $fileName;
}
} else {
$list = json_decode($files);
$list = json_decode($_POST['files']);
}

$error = array();
Expand Down

0 comments on commit 6a25e5f

Please sign in to comment.