mirror of
https://github.com/nextcloud/server.git
synced 2024-08-11 02:11:21 +02:00
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
Block a user