Skip to content

Commit

Permalink
navigation/dashboard: Provide fallback for icingadb items without icon
Browse files Browse the repository at this point in the history
fixes #5177
  • Loading branch information
nilmerg committed Feb 9, 2024
1 parent 58b3321 commit 5432dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/scripts/navigation/dashboard.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use ipl\Web\Widget\Icon;
<div class="link-icon">
<?php
if (substr($item->getUrl()->getPath(), 0, 9) === 'icingadb/') {
echo new Icon($item->getIcon(), [ 'aria-hidden' => 1]);
echo new Icon($item->getIcon() ?: 'share', [ 'aria-hidden' => 1]);
} else {
echo $this->icon($item->getIcon() ?: 'forward', null, array('aria-hidden' => true));
}
Expand Down

0 comments on commit 5432dc8

Please sign in to comment.