check if $path is a empty string
This commit is contained in:
parent
5cad2d7ccc
commit
250f40fe40
|
@ -48,7 +48,7 @@ class OC_FilesystemView {
|
|||
}
|
||||
|
||||
public function getAbsolutePath($path = '/') {
|
||||
if($path[0]!=='/') {
|
||||
if(!$path || $path[0]!=='/') {
|
||||
$path='/'.$path;
|
||||
}
|
||||
return $this->fakeRoot.$path;
|
||||
|
|
Loading…
Reference in New Issue