Fix OC_Files::get() to not return the first character of the filename if only one file is requested.tags/v6.0.0alpha2
@@ -50,7 +50,7 @@ class OC_Files { | |||
$xsendfile = true; | |||
} | |||
if (count($files) == 1) { | |||
if (is_array($files) && count($files) == 1) { | |||
$files = $files[0]; | |||
} | |||