From c069414b1b8f44711e658cfc3b09d3885207961a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 18 Jun 2015 11:31:32 +0200 Subject: [PATCH] LdapQuery: fix forgotten connection property rename --- library/Icinga/Protocol/Ldap/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Protocol/Ldap/Query.php b/library/Icinga/Protocol/Ldap/Query.php index b54f8b15e..fe6539515 100644 --- a/library/Icinga/Protocol/Ldap/Query.php +++ b/library/Icinga/Protocol/Ldap/Query.php @@ -156,7 +156,7 @@ class Query extends SimpleQuery { $result = $this->fetchAll(); $sorted = array(); - $quotedDn = preg_quote($this->connection->getDN(), '/'); + $quotedDn = preg_quote($this->ds->getDN(), '/'); foreach ($result as $key => & $item) { $new_key = LdapUtils::implodeDN( array_reverse( @@ -170,7 +170,7 @@ class Query extends SimpleQuery unset($groups); ksort($sorted); - $tree = Root::forConnection($this->connection); + $tree = Root::forConnection($this->ds); $root_dn = $tree->getDN(); foreach ($sorted as $sort_key => & $key) { if ($key === $root_dn) {