[icinga-checkins] icinga.org: icingaweb2/master: Navigation::fromArray(): pass $name only as string to addItem()

git at icinga.org git at icinga.org
Tue Oct 18 18:20:36 CEST 2016


Module: icingaweb2
Branch: master
Commit: 00880710edccd5bb1a5c6372627e63ca26ace1c3
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=00880710edccd5bb1a5c6372627e63ca26ace1c3

Author: Alexander A. Klimov <alexander.klimov at icinga.com>
Date:   Tue Oct 18 18:06:51 2016 +0200

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 9ecce98..3371d6c 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;



More information about the icinga-checkins mailing list