NavigationItemRenderer: Don't fail to render an icon if there's none
fixes #3859
This commit is contained in:
parent
fe3a51937a
commit
b06103bfc5
|
@ -178,7 +178,7 @@ class NavigationItemRenderer
|
|||
: $item->getLabel();
|
||||
if (($icon = $item->getIcon()) !== null) {
|
||||
$label = $this->view()->icon($icon) . $label;
|
||||
} else {
|
||||
} elseif ($item->getName()) {
|
||||
$firstLetter = $item->getName()[0];
|
||||
$label = $this->view()->icon('letter', null, ['data-letter' => strtolower($firstLetter)]) . $label;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue