From 575875481a05cbfcf757d10ba50f85f879be6f1c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 29 Sep 2015 11:31:36 +0200 Subject: [PATCH] LdapConnection: Do not substract 1 from a given offset refs #9772 --- library/Icinga/Protocol/Ldap/LdapConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Protocol/Ldap/LdapConnection.php b/library/Icinga/Protocol/Ldap/LdapConnection.php index 87516fd41..089d9d765 100644 --- a/library/Icinga/Protocol/Ldap/LdapConnection.php +++ b/library/Icinga/Protocol/Ldap/LdapConnection.php @@ -658,7 +658,7 @@ class LdapConnection implements Selectable, Inspectable protected function runQuery(LdapQuery $query, array $fields = null) { $limit = $query->getLimit(); - $offset = $query->hasOffset() ? $query->getOffset() - 1 : 0; + $offset = $query->hasOffset() ? $query->getOffset() : 0; if ($fields === null) { $fields = $query->getColumns();