Merge pull request #551 from nextcloud/stable10-backport-547

[stable10] Fix error message while restoring all files
This commit is contained in:
Morris Jobke 2016-07-25 16:08:14 +02:00 committed by GitHub
commit 4c45d0fcd3
1 changed files with 1 additions and 2 deletions

View File

@ -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();