mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
LdapQuery: fix forgotten connection property rename
This commit is contained in:
parent
b54bf35402
commit
c069414b1b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user