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
1 changed files with 2 additions and 2 deletions

View File

@ -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) {