Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-31 15:44:01 +0400
committerRobin Appelman <icewind@owncloud.com>2012-01-31 15:44:01 +0400
commit803f86e0fcd77e3888daa387142fd197083d5fd3 (patch)
tree8ea11a5473db7b03359d62ece0a51887cd8cbe74 /apps/files_sharing
parentffecc3e4341102714a89ab6b5643c666c1feb0ee (diff)
dont try to use the filesystem when it isnt setup yet
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/sharedstorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 529a82b830a..fa6fe7913f2 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -22,7 +22,7 @@
require_once( 'lib_share.php' );
-if (!OC_Filesystem::is_dir('/Shared')) {
+if (OC_Filesystem::$loaded and !OC_Filesystem::is_dir('/Shared')) {
OC_Filesystem::mkdir('/Shared');
}
OC_Filesystem::mount('OC_Filestorage_Shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared'),'/'.OC_User::getUser().'/files/Shared/');