summaryrefslogtreecommitdiffstats
path: root/lib/group/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/group/manager.php')
-rw-r--r--lib/group/manager.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/group/manager.php b/lib/group/manager.php
index 7efcff0ade0..bf469d51d12 100644
--- a/lib/group/manager.php
+++ b/lib/group/manager.php
@@ -85,7 +85,13 @@ class Manager extends PublicEmitter {
}
protected function getGroupObject($gid) {
- $this->cachedGroups[$gid] = new Group($gid, $this->backends, $this->userManager, $this);
+ $backends = array();
+ foreach ($this->backends as $backend) {
+ if ($backend->groupExists($gid)) {
+ $backends[] = $backend;
+ }
+ }
+ $this->cachedGroups[$gid] = new Group($gid, $backends, $this->userManager, $this);
return $this->cachedGroups[$gid];
}