check if $path is a empty string

This commit is contained in:
Björn Schießle 2012-11-07 17:15:13 +01:00
parent 5cad2d7ccc
commit 250f40fe40
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class OC_FilesystemView {
}
public function getAbsolutePath($path = '/') {
if($path[0]!=='/') {
if(!$path || $path[0]!=='/') {
$path='/'.$path;
}
return $this->fakeRoot.$path;