diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-10 01:55:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-10 01:55:38 +0200 |
commit | c2bff656ffb355277ed0edd7d46083006865ed5c (patch) | |
tree | c0c439185698ce1f6b2006b05fce66d17dcb25bf /lib | |
parent | 912b1515616c77007eb447ae1210225a1729a2c8 (diff) | |
download | nextcloud-server-c2bff656ffb355277ed0edd7d46083006865ed5c.tar.gz nextcloud-server-c2bff656ffb355277ed0edd7d46083006865ed5c.zip |
cant use private members from closure in php <5.4
Diffstat (limited to 'lib')
-rw-r--r-- | lib/group/manager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/group/manager.php b/lib/group/manager.php index 7f96065c6d2..ecbe3dbb83d 100644 --- a/lib/group/manager.php +++ b/lib/group/manager.php @@ -47,12 +47,12 @@ class Manager extends PublicEmitter { */ public function __construct($userManager) { $this->userManager = $userManager; - $manager = $this; - $this->listen('\OC\Group', 'delete', function ($group) use (&$manager) { + $cache = &$this->cachedGroups; + $this->listen('\OC\Group', 'delete', function ($group) use (&$cache) { /** * @var \OC\Group\Group $group */ - unset($manager->cachedGroups[$group->getGID()]); + unset($cache[$group->getGID()]); }); } |