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
1 changed files with 1 additions and 1 deletions

View File

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