summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php2
1 files changed, 1 insertions, 1 deletions
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;