mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Root: Fix Variable '$child' is probably undefined
This commit is contained in:
parent
be241d5b4e
commit
d24cd0bf09
@ -72,6 +72,7 @@ class Root
|
|||||||
$dn = $this->stripMyDN($dn);
|
$dn = $this->stripMyDN($dn);
|
||||||
$parts = array_reverse(LdapUtils::explodeDN($dn));
|
$parts = array_reverse(LdapUtils::explodeDN($dn));
|
||||||
$parent = $this;
|
$parent = $this;
|
||||||
|
$child = null;
|
||||||
while ($rdn = array_shift($parts)) {
|
while ($rdn = array_shift($parts)) {
|
||||||
if ($parent->hasChildRDN($rdn)) {
|
if ($parent->hasChildRDN($rdn)) {
|
||||||
$child = $parent->getChildByRDN($rdn);
|
$child = $parent->getChildByRDN($rdn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user