LdapConnection: respect a query's limit as expected

refs #2765
This commit is contained in:
Alexander A. Klimov 2017-11-23 15:12:14 +01:00 committed by Johannes Meyer
parent 705f3a49d9
commit 2282e1aa4f
1 changed files with 1 additions and 1 deletions

View File

@ -767,7 +767,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) {