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);
|
||||
$parts = array_reverse(LdapUtils::explodeDN($dn));
|
||||
$parent = $this;
|
||||
$child = null;
|
||||
while ($rdn = array_shift($parts)) {
|
||||
if ($parent->hasChildRDN($rdn)) {
|
||||
$child = $parent->getChildByRDN($rdn);
|
||||
|
|
Loading…
Reference in New Issue