Skip to content

Commit

Permalink
[Patch] Fix for access to personal settings
Browse files Browse the repository at this point in the history
Caused by e-groups which could not be found in the database (nested
grops?)
  • Loading branch information
nadir committed Apr 12, 2016
1 parent b481f77 commit 74b5481
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/group/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ public function getUserIdGroups($uid) {
$groupIds = $backend->getUserGroups($uid);
if (is_array($groupIds)) {
foreach ($groupIds as $groupId) {
$groups[$groupId] = $this->get($groupId);
$groupInstance = $this->get($groupId);
if($groupInstance != null) {
$groups[$groupId] = $groupInstance;
}
}
}
}
Expand Down

0 comments on commit 74b5481

Please sign in to comment.