Root: Fix `Variable '$child' is probably undefined`

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 09:51:39 +02:00 committed by raviks789
parent be241d5b4e
commit d24cd0bf09
1 changed files with 1 additions and 0 deletions

View File

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