Skip to content
Snippets Groups Projects
Commit 250f40fe authored by Björn Schießle's avatar Björn Schießle
Browse files

check if $path is a empty string

parent 5cad2d7c
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class OC_FilesystemView {
}
public function getAbsolutePath($path = '/') {
if($path[0]!=='/') {
if(!$path || $path[0]!=='/') {
$path='/'.$path;
}
return $this->fakeRoot.$path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment