]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if $path is a empty string
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 7 Nov 2012 16:15:13 +0000 (17:15 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 7 Nov 2012 16:15:13 +0000 (17:15 +0100)
lib/filesystemview.php

index d34fbf846764dac48bec7289c6e28f98a04d1b7c..cfd6a4032e8b4a4155101e54b90a511d5440aae1 100644 (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;