summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-18 10:12:23 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-18 10:12:23 +0100
commit6374472e2e1a85309085307d6d425a89f3442637 (patch)
tree74ca21ec862c65e9ee338e110685107b67f2edb6 /lib
parentf309bc960de326c75548abcb18378a4b6e6348c2 (diff)
downloadnextcloud-server-6374472e2e1a85309085307d6d425a89f3442637.tar.gz
nextcloud-server-6374472e2e1a85309085307d6d425a89f3442637.zip
No more static
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/common.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 156b49d4e82..edc570c967d 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -72,6 +72,7 @@ abstract class Common implements Storage, ILockingStorage {
protected $updater;
protected $mountOptions = [];
+ protected $owner = null;
public function __construct($parameters) {
}
@@ -383,13 +384,11 @@ abstract class Common implements Storage, ILockingStorage {
* @return string|false uid or false
*/
public function getOwner($path) {
- static $owner;
-
- if (!isset($owner)) {
- $owner = \OC_User::getUser();;
+ if ($this->owner === null) {
+ $this->owner = \OC_User::getUser();
}
- return $owner;
+ return $this->owner;
}
/**