fix return value when ldapPagingSize returns null
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
15a3f4659f
commit
9031ae0281
|
@ -176,10 +176,10 @@ class Sync extends TimedJob {
|
|||
true
|
||||
);
|
||||
|
||||
if($connection->ldapPagingSize === 0) {
|
||||
if((int)$connection->ldapPagingSize === 0) {
|
||||
return false;
|
||||
}
|
||||
return count($results) >= $connection->ldapPagingSize;
|
||||
return count($results) >= (int)$connection->ldapPagingSize;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -159,7 +159,8 @@ class SyncTest extends TestCase {
|
|||
[ 3, 3, true ],
|
||||
[ 3, 5, true ],
|
||||
[ 3, 2, false],
|
||||
[ 0, 4, false]
|
||||
[ 0, 4, false],
|
||||
[ null, 4, false]
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue