Merge pull request #547 from nextcloud/fix-restore-all-files

Fix error message while restoring all files
This commit is contained in:
Joas Schilling 2016-07-25 11:38:05 +02:00 коммит произвёл GitHub
Родитель de4236bc4a 59b87fade5
Коммит 6a25e5f0eb
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

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