Browse Source

when paged results are turned off, all (max possible) users are returned

thus hasMoreResult should return false

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/7796/head
Arthur Schiwon 8 years ago
parent
commit
f292f98060
No known key found for this signature in database GPG Key ID: 7424F1874854DF23
  1. 2
      apps/user_ldap/lib/Jobs/Sync.php
  2. 3
      apps/user_ldap/tests/Jobs/SyncTest.php

2
apps/user_ldap/lib/Jobs/Sync.php

@ -177,7 +177,7 @@ class Sync extends TimedJob {
);
if($connection->ldapPagingSize === 0) {
return true;
return false;
}
return count($results) >= $connection->ldapPagingSize;
}

3
apps/user_ldap/tests/Jobs/SyncTest.php

@ -158,7 +158,8 @@ class SyncTest extends TestCase {
return [
[ 3, 3, true ],
[ 3, 5, true ],
[ 3, 2, false]
[ 3, 2, false],
[ 0, 4, false]
];
}

Loading…
Cancel
Save