summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-17 14:22:14 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-17 14:22:14 -0400
commit1c13b2681a7ba9a7f3db3e11e6e728411ade12ee (patch)
tree4cbc5d28c79f8d5b0018042121d2d86ed667647f /apps/files_sharing
parent9ee4fcdf2f5fb4ee0b1e309da9a32e5ffc72cf26 (diff)
downloadnextcloud-server-1c13b2681a7ba9a7f3db3e11e6e728411ade12ee.tar.gz
nextcloud-server-1c13b2681a7ba9a7f3db3e11e6e728411ade12ee.zip
Fix my last commit 9ee4fc
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/sharedstorage.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 8eea740a9e5..38f8f3e9ebb 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -32,8 +32,10 @@ class OC_Filestorage_Shared extends OC_Filestorage {
public function __construct($arguments) {
$this->datadir = $arguments['datadir'];
- if (OC_Share::getItemsInFolder($this->datadir) && !OC_Filesystem::is_dir($this->datadir)) {
- OC_Filesystem::mkdir($this->datadir);
+ if (OC_Share::getItemsInFolder($this->datadir)) {
+ if (!OC_Filesystem::is_dir($this->datadir)) {
+ OC_Filesystem::mkdir($this->datadir);
+ }
} else if (OC_Filesystem::is_dir($this->datadir)) {
OC_Filesystem::rmdir($this->datadir);
}