diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-06-13 00:32:44 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-06-13 00:32:44 +0200 |
commit | db1353655b1d27c545e438e3d36b0d5889a91668 (patch) | |
tree | 90b2da70c55a257a7ae0101186f6b150b1c6a8be /lib/filesystem.php | |
parent | 521294d0bf9803cb4ffdc6fb43bd9b9253fece40 (diff) | |
download | nextcloud-server-db1353655b1d27c545e438e3d36b0d5889a91668.tar.gz nextcloud-server-db1353655b1d27c545e438e3d36b0d5889a91668.zip |
check for view before trying to invoke method on object
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index ccbb4319757..dd74daffa4e 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); |