Merge pull request #19619 from owncloud/fix-19614-master

Fix single file download
This commit is contained in:
Thomas Müller 2015-10-07 14:38:02 +02:00
commit f5c390fffd

View file

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