Widget\Tab: fix tagParams check breaking tabs

This commit is contained in:
Thomas Gelf 2014-11-16 19:37:11 +01:00
parent 2e1cc8ed35
commit 0cea370a5c
1 changed files with 1 additions and 1 deletions

View File

@ -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;