summaryrefslogtreecommitdiffstats
path: root/lib/group
diff options
context:
space:
mode:
Diffstat (limited to 'lib/group')
-rw-r--r--lib/group/group.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/group/group.php b/lib/group/group.php
index a752c4311c1..c4ca7f1c0eb 100644
--- a/lib/group/group.php
+++ b/lib/group/group.php
@@ -75,7 +75,10 @@ class Group {
}
foreach ($userIds as $userId) {
- $users[] = $this->userManager->get($userId);
+ $user = $this->userManager->get($userId);
+ if(!is_null($user)) {
+ $users[$userId] = $user;
+ }
}
$this->users = $users;
return $users;
@@ -173,7 +176,10 @@ class Group {
$offset -= count($userIds);
}
foreach ($userIds as $userId) {
- $users[$userId] = $this->userManager->get($userId);
+ $user = $this->userManager->get($userId);
+ if(!is_null($user)) {
+ $users[$userId] = $user;
+ }
}
if (!is_null($limit) and $limit <= 0) {
return array_values($users);
@@ -205,7 +211,10 @@ class Group {
$offset -= count($userIds);
}
foreach ($userIds as $userId) {
- $users[$userId] = $this->userManager->get($userId);
+ $user = $this->userManager->get($userId);
+ if(!is_null($user)) {
+ $users[$userId] = $user;
+ }
}
if (!is_null($limit) and $limit <= 0) {
return array_values($users);