diff --git a/lib/filesystemview.php b/lib/filesystemview.php index ccaa040fe88..0229213ebcb 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -48,7 +48,7 @@ class OC_FilesystemView { } public function getAbsolutePath($path = '/') { - if($path[0]!=='/') { + if(!$path || $path[0]!=='/') { $path='/'.$path; } return $this->fakeRoot.$path;