Do not error when downloading from a numeric public subfolder

Fixes #6820

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-10-30 21:06:35 +01:00
parent 5672f14fd1
commit 638be96232
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 0 deletions

View File

@ -458,6 +458,10 @@ class ShareController extends Controller {
if ($files_list === null) {
$files_list = [$files];
}
// Just in case $files is a single int like '1234'
if (!is_array($files_list)) {
$files_list = [$files_list];
}
}
$userFolder = $this->rootFolder->getUserFolder($share->getShareOwner());