mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +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();
|
$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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user