summaryrefslogtreecommitdiffstats
path: root/lib/private/group/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/group/manager.php')
-rw-r--r--lib/private/group/manager.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index 451de0c0539..deceb8bb929 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -52,12 +52,14 @@ class Manager extends PublicEmitter {
*/
public function __construct($userManager) {
$this->userManager = $userManager;
- $cache = & $this->cachedGroups;
- $this->listen('\OC\Group', 'postDelete', function ($group) use (&$cache) {
+ $cachedGroups = & $this->cachedGroups;
+ $cachedUserGroups = & $this->cachedUserGroups;
+ $this->listen('\OC\Group', 'postDelete', function ($group) use (&$cachedGroups, &$cachedUserGroups) {
/**
* @var \OC\Group\Group $group
*/
- unset($cache[$group->getGID()]);
+ unset($cachedGroups[$group->getGID()]);
+ $cachedUserGroups = array();
});
}