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>
This commit is contained in:
Arthur Schiwon 2018-01-11 13:20:17 +01:00
parent 2a24f45b5f
commit f292f98060
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 3 additions and 2 deletions

View File

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

View File

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