diff --git a/lib/private/files.php b/lib/private/files.php index e24e10ec29..919ca4ba71 100644 --- a/lib/private/files.php +++ b/lib/private/files.php @@ -86,7 +86,7 @@ class OC_Files { if (!is_array($files)) { $filename = $dir . '/' . $files; - if (!$view->is_dir($files)) { + if (!$view->is_dir($filename)) { self::getSingleFile($view, $dir, $files, $onlyHeader); return; }