Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-11-07 20:15:13 +0400
committerBjörn Schießle <schiessle@owncloud.com>2012-11-07 20:35:07 +0400
commit250f40fe407f8c7fe38776b7b38f883ffd40b836 (patch)
treeb4e052813206654b4207e4ebfa724beb3e51091b /lib/filesystemview.php
parent5cad2d7ccc3d2b4ccd9e1b090e28787f1c28b6ca (diff)
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;