Skip to content
Snippets Groups Projects
Commit db135365 authored by Bartek Przybylski's avatar Bartek Przybylski
Browse files

check for view before trying to invoke method on object

parent 521294d0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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