From 74b548152919cf103d17bf3d2f6cdf6b10aae99a Mon Sep 17 00:00:00 2001 From: nadir Date: Tue, 12 Apr 2016 14:14:22 +0200 Subject: [PATCH] [Patch] Fix for access to personal settings Caused by e-groups which could not be found in the database (nested grops?) --- lib/private/group/manager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index acc8fa6be11c..78554e282a47 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -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; + } } } }