From db1353655b1d27c545e438e3d36b0d5889a91668 Mon Sep 17 00:00:00 2001 From: Bartek Przybylski Date: Wed, 13 Jun 2012 00:32:44 +0200 Subject: [PATCH] check for view before trying to invoke method on object --- lib/filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystem.php b/lib/filesystem.php index ccbb431975..dd74daffa4 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -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);