mirror of
https://github.com/nextcloud/server.git
synced 2024-08-23 17:57:31 +02:00
Merge pull request #19619 from owncloud/fix-19614-master
Fix single file download
This commit is contained in:
commit
f5c390fffd
@ -82,6 +82,9 @@ class OC_Files {
|
||||
|
||||
if (is_array($files) && count($files) === 1) {
|
||||
$files = $files[0];
|
||||
}
|
||||
|
||||
if (!is_array($files)) {
|
||||
$filename = $dir . '/' . $files;
|
||||
if (!$view->is_dir($files)) {
|
||||
self::getSingleFile($view, $dir, $files, $onlyHeader);
|
||||
|
Loading…
Reference in New Issue
Block a user