Don't loop over the backends, we already know where the user should be
This commit is contained in:
parent
ba0099f73a
commit
76af70180d
|
@ -335,11 +335,11 @@ class Manager extends PublicEmitter implements IUserManager {
|
|||
$offset = 0;
|
||||
do {
|
||||
$users = $backend->getUsers($search, $limit, $offset);
|
||||
foreach ($users as $user) {
|
||||
$user = $this->get($user);
|
||||
if (is_null($user)) {
|
||||
foreach ($users as $uid) {
|
||||
if (!$backend->userExists($uid)) {
|
||||
continue;
|
||||
}
|
||||
$user = $this->getUserObject($uid, $backend);
|
||||
$return = $callback($user);
|
||||
if ($return === false) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue