Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/Jobs/Sync.php')
-rw-r--r--apps/user_ldap/lib/Jobs/Sync.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Jobs/Sync.php b/apps/user_ldap/lib/Jobs/Sync.php
index b78a1947e27..0cc0be7d3ca 100644
--- a/apps/user_ldap/lib/Jobs/Sync.php
+++ b/apps/user_ldap/lib/Jobs/Sync.php
@@ -176,10 +176,10 @@ class Sync extends TimedJob {
true
);
- if($connection->ldapPagingSize === 0) {
- return true;
+ if((int)$connection->ldapPagingSize === 0) {
+ return false;
}
- return count($results) >= $connection->ldapPagingSize;
+ return count($results) >= (int)$connection->ldapPagingSize;
}
/**