mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Widget\Tab: fix tagParams check breaking tabs
This commit is contained in:
parent
2e1cc8ed35
commit
0cea370a5c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user