LdapConnection: Respect query limits also for paged queries

refs #2765
This commit is contained in:
Johannes Meyer 2018-01-16 12:54:17 +01:00
parent 2282e1aa4f
commit 37f22518bb

View File

@ -902,7 +902,7 @@ class LdapConnection implements Selectable, Inspectable
$query, $query,
array_values($fields), array_values($fields),
0, 0,
$serverSorting && $limit ? $offset + $limit : 0 ($serverSorting || ! $query->hasOrder()) && $limit ? $offset + $limit : 0
); );
if ($results === false) { if ($results === false) {
if (ldap_errno($ds) === self::LDAP_NO_SUCH_OBJECT) { if (ldap_errno($ds) === self::LDAP_NO_SUCH_OBJECT) {