diff --git a/library/Icinga/Web/Widget/Tab.php b/library/Icinga/Web/Widget/Tab.php index b8050f4a5..a06389b98 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;