From 00880710edccd5bb1a5c6372627e63ca26ace1c3 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 18 Oct 2016 18:06:51 +0200 Subject: [PATCH] Navigation::fromArray(): pass $name only as string to addItem() fixes #12923 --- library/Icinga/Web/Navigation/Navigation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Navigation/Navigation.php b/library/Icinga/Web/Navigation/Navigation.php index 9ecce98bc..3371d6c00 100644 --- a/library/Icinga/Web/Navigation/Navigation.php +++ b/library/Icinga/Web/Navigation/Navigation.php @@ -565,7 +565,7 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate { $navigation = new static(); foreach ($array as $name => $properties) { - $navigation->addItem($name, $properties); + $navigation->addItem((string) $name, $properties); } return $navigation;