[icinga-checkins] icinga.org: icingaweb2/master: Widget\Tab: fix tagParams check breaking tabs

git at icinga.org git at icinga.org
Sun Nov 16 19:37:35 CET 2014


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Nov 16 19:37:11 2014 +0100

Widget\Tab: fix tagParams check breaking tabs

---

 library/Icinga/Web/Widget/Tab.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Widget/Tab.php b/library/Icinga/Web/Widget/Tab.php
index b8050f4..a06389b 100644
--- a/library/Icinga/Web/Widget/Tab.php
+++ b/library/Icinga/Web/Widget/Tab.php
@@ -206,7 +206,7 @@ class Tab extends AbstractWidget
 
         if ($this->icon !== null) {
             if (strpos($this->icon, '.') === false) {
-                if (array_key_exists('class', $tagParams)) {
+                if ($tagParams && array_key_exists('class', $tagParams)) {
                     $tagParams['class'] .= ' icon-' . $this->icon;
                 } else {
                     $tagParams['class'] = 'icon-' . $this->icon;



More information about the icinga-checkins mailing list