diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-04 16:48:45 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-09-23 16:22:53 +0200 |
commit | 7d53427ee6ff1a61e005423da952b49b7b8d3147 (patch) | |
tree | ebf495bd9f4933018d63d52a76f31b8eabb7d37a | |
parent | 88f03192ba1f74a5ab8881c0c1cbb3b2203f9f3f (diff) | |
download | nextcloud-server-7d53427ee6ff1a61e005423da952b49b7b8d3147.tar.gz nextcloud-server-7d53427ee6ff1a61e005423da952b49b7b8d3147.zip |
only initialize once
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 47f3bcf7602..27dd2f1e485 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -60,6 +60,8 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { */ private $user; + private $initialized = false; + public function __construct($arguments) { $this->share = $arguments['share']; $this->ownerView = $arguments['ownerView']; @@ -68,6 +70,10 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { } private function init() { + if ($this->initialized) { + return; + } + $this->initialized = true; Filesystem::initMountPoints($this->share['uid_owner']); // for updating our etags when changes are made to the share from the owners side (probably indirectly by us trough another share) |