}
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;
$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);
$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);