NavigationConfigForm: Fix `Variable '$classPath' is probably undefined`

This commit is contained in:
Sukhwinder Dhillon 2023-08-15 15:30:51 +02:00 committed by raviks789
parent c501e3e2e1
commit 143347634f
1 changed files with 1 additions and 0 deletions

View File

@ -815,6 +815,7 @@ class NavigationConfigForm extends ConfigForm
$className = StringHelper::cname($type, '-') . 'Form'; $className = StringHelper::cname($type, '-') . 'Form';
$form = null; $form = null;
$classPath = null;
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) { foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
$classPath = 'Icinga\\Module\\' $classPath = 'Icinga\\Module\\'
. ucfirst($module->getName()) . ucfirst($module->getName())