Navigation/-Item: Fix `Variable '$classPath' is probably undefined`
This commit is contained in:
parent
eeff32d4ce
commit
e2e582b095
|
@ -122,6 +122,7 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
|||
}
|
||||
|
||||
$item = null;
|
||||
$classPath = null;
|
||||
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
|
||||
$classPath = 'Icinga\\Module\\'
|
||||
. ucfirst($module->getName())
|
||||
|
|
|
@ -780,6 +780,7 @@ class NavigationItem implements IteratorAggregate
|
|||
}
|
||||
|
||||
$renderer = null;
|
||||
$classPath = null;
|
||||
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
|
||||
$classPath = 'Icinga\\Module\\' . ucfirst($module->getName()) . '\\' . static::RENDERER_NS . '\\' . $name;
|
||||
if (class_exists($classPath)) {
|
||||
|
|
Loading…
Reference in New Issue