Fix file sharing via public link for one particular file.

Fix OC_Files::get() to not return the first character of the filename
if only one file is requested.
This commit is contained in:
Olivier Tétard 2013-03-12 11:53:41 +01:00 committed by Thomas Mueller
parent 2e9d641337
commit 17fd6482d8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class OC_Files {
$xsendfile = true;
}
if (count($files) == 1) {
if (is_array($files) && count($files) == 1) {
$files = $files[0];
}