LdapQuery: fix forgotten connection property rename

This commit is contained in:
Thomas Gelf 2015-06-18 11:31:32 +02:00
parent b54bf35402
commit c069414b1b

View File

@ -156,7 +156,7 @@ class Query extends SimpleQuery
{ {
$result = $this->fetchAll(); $result = $this->fetchAll();
$sorted = array(); $sorted = array();
$quotedDn = preg_quote($this->connection->getDN(), '/'); $quotedDn = preg_quote($this->ds->getDN(), '/');
foreach ($result as $key => & $item) { foreach ($result as $key => & $item) {
$new_key = LdapUtils::implodeDN( $new_key = LdapUtils::implodeDN(
array_reverse( array_reverse(
@ -170,7 +170,7 @@ class Query extends SimpleQuery
unset($groups); unset($groups);
ksort($sorted); ksort($sorted);
$tree = Root::forConnection($this->connection); $tree = Root::forConnection($this->ds);
$root_dn = $tree->getDN(); $root_dn = $tree->getDN();
foreach ($sorted as $sort_key => & $key) { foreach ($sorted as $sort_key => & $key) {
if ($key === $root_dn) { if ($key === $root_dn) {