mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user