diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-04-07 13:47:10 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-04-07 13:47:10 +0200 |
commit | 1ae73f0e996ba571e0523030db348e40ebc1e104 (patch) | |
tree | 115984614c2dd970f207aebbcc10ed75aaf0868d | |
parent | a4c0f259a5704794d6d2f65558def4b3410d1395 (diff) | |
download | nextcloud-server-1ae73f0e996ba571e0523030db348e40ebc1e104.tar.gz nextcloud-server-1ae73f0e996ba571e0523030db348e40ebc1e104.zip |
don't return null for not existing group id's
-rw-r--r-- | lib/private/group/manager.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index 417be79ab30..a7e83f932d1 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -156,7 +156,10 @@ class Manager extends PublicEmitter implements IGroupManager { foreach ($this->backends as $backend) { $groupIds = $backend->getGroups($search, $limit, $offset); foreach ($groupIds as $groupId) { - $groups[$groupId] = $this->get($groupId); + $group = $this->get($groupId); + if (!is_null($group)) { + $groups[$groupId] = $group; + } } if (!is_null($limit) and $limit <= 0) { return array_values($groups); |