From d24cd0bf0948c5b46f9bb2269660573e9ccd10c1 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 16 Aug 2023 09:51:39 +0200 Subject: [PATCH] Root: Fix `Variable '$child' is probably undefined` --- library/Icinga/Protocol/Ldap/Root.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icinga/Protocol/Ldap/Root.php b/library/Icinga/Protocol/Ldap/Root.php index 5d7a63d40..48d871963 100644 --- a/library/Icinga/Protocol/Ldap/Root.php +++ b/library/Icinga/Protocol/Ldap/Root.php @@ -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);