mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Navigation::fromArray(): pass $name only as string to addItem()
fixes #12923
This commit is contained in:
parent
b16c64443b
commit
00880710ed
@ -565,7 +565,7 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
|||||||
{
|
{
|
||||||
$navigation = new static();
|
$navigation = new static();
|
||||||
foreach ($array as $name => $properties) {
|
foreach ($array as $name => $properties) {
|
||||||
$navigation->addItem($name, $properties);
|
$navigation->addItem((string) $name, $properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $navigation;
|
return $navigation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user