Browse Source
fix return value when ldapPagingSize returns null
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v13.0.0RC1
Arthur Schiwon
6 years ago
No account linked to committer's email address
|
|
@@ -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] |
|
|
|
]; |
|
|
|
} |
|
|
|
|