check for view before trying to invoke method on object
This commit is contained in:
parent
521294d0bf
commit
db1353655b
|
@ -319,7 +319,7 @@ class OC_Filesystem{
|
|||
if(substr($mountpoint,-1)!=='/'){
|
||||
$mountpoint=$mountpoint.'/';
|
||||
}
|
||||
if ($mountpoint != '/' && !self::is_dir(basename($mountpoint))) {
|
||||
if (self::getView() != null && $mountpoint != '/' && !self::is_dir(basename($mountpoint))) {
|
||||
self::mkdir(basename($mountpoint));
|
||||
}
|
||||
self::$mounts[$mountpoint]=array('class'=>$class,'arguments'=>$arguments);
|
||||
|
|
Loading…
Reference in New Issue