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:
parent
2a24f45b5f
commit
f292f98060
|
@ -177,7 +177,7 @@ class Sync extends TimedJob {
|
|||
);
|
||||
|
||||
if($connection->ldapPagingSize === 0) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return count($results) >= $connection->ldapPagingSize;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue