Skip to content

Commit

Permalink
LdapConnection: Do not substract 1 from a given offset, #2
Browse files Browse the repository at this point in the history
refs #9772
  • Loading branch information
Johannes Meyer committed Sep 29, 2015
1 parent 624f505 commit b055920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Protocol/Ldap/LdapConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ protected function runPagedQuery(LdapQuery $query, array $fields = null, $pageSi
}

$limit = $query->getLimit();
$offset = $query->hasOffset() ? $query->getOffset() - 1 : 0;
$offset = $query->hasOffset() ? $query->getOffset() : 0;
$queryString = (string) $query;
$base = $query->getBase() ?: $this->rootDn;

Expand Down

0 comments on commit b055920

Please sign in to comment.