From b0559206af580ef2078263abb44b0e39b4e6bc47 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 29 Sep 2015 11:39:36 +0200 Subject: [PATCH] LdapConnection: Do not substract 1 from a given offset, #2 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 712a74eb9..5e05c960b 100644 --- a/library/Icinga/Protocol/Ldap/LdapConnection.php +++ b/library/Icinga/Protocol/Ldap/LdapConnection.php @@ -789,7 +789,7 @@ class LdapConnection implements Selectable, Inspectable } $limit = $query->getLimit(); - $offset = $query->hasOffset() ? $query->getOffset() - 1 : 0; + $offset = $query->hasOffset() ? $query->getOffset() : 0; $queryString = (string) $query; $base = $query->getBase() ?: $this->rootDn;