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;
|
$offset = 0;
|
||||||
do {
|
do {
|
||||||
$users = $backend->getUsers($search, $limit, $offset);
|
$users = $backend->getUsers($search, $limit, $offset);
|
||||||
foreach ($users as $user) {
|
foreach ($users as $uid) {
|
||||||
$user = $this->get($user);
|
if (!$backend->userExists($uid)) {
|
||||||
if (is_null($user)) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
$user = $this->getUserObject($uid, $backend);
|
||||||
$return = $callback($user);
|
$return = $callback($user);
|
||||||
if ($return === false) {
|
if ($return === false) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue