summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-11-07 17:15:13 +0100
committerBjörn Schießle <schiessle@owncloud.com>2012-11-07 17:35:07 +0100
commit250f40fe407f8c7fe38776b7b38f883ffd40b836 (patch)
treeb4e052813206654b4207e4ebfa724beb3e51091b /lib/filesystemview.php
parent5cad2d7ccc3d2b4ccd9e1b090e28787f1c28b6ca (diff)
downloadnextcloud-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.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;