diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-11-07 17:15:13 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-11-07 17:35:07 +0100 |
commit | 250f40fe407f8c7fe38776b7b38f883ffd40b836 (patch) | |
tree | b4e052813206654b4207e4ebfa724beb3e51091b /lib/filesystemview.php | |
parent | 5cad2d7ccc3d2b4ccd9e1b090e28787f1c28b6ca (diff) | |
download | nextcloud-server-250f40fe407f8c7fe38776b7b38f883ffd40b836.tar.gz nextcloud-server-250f40fe407f8c7fe38776b7b38f883ffd40b836.zip |
check if $path is a empty string
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r-- | lib/filesystemview.php | 2 |
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; |