diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-05-04 14:18:41 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2022-05-04 14:18:41 +0000 |
| commit | 0d95625c2ab0eabe98e724ab79be0087093cc35b (patch) | |
| tree | f911e16bfb52f4aceacf9e9ad4c8d31923e26a6e /templates/header-navigation-item.php | |
| parent | e1f835675363c17fbf5d269f6d1d1f84b6727886 (diff) | |
fix for BIESt #957
Merge request studip/studip!554
Diffstat (limited to 'templates/header-navigation-item.php')
| -rw-r--r-- | templates/header-navigation-item.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/header-navigation-item.php b/templates/header-navigation-item.php index a163140..9fc875d 100644 --- a/templates/header-navigation-item.php +++ b/templates/header-navigation-item.php @@ -2,7 +2,9 @@ $attributes = $nav->getLinkAttributes(); $image_attributes = $nav->getImage()->getAttributes(); -$attributes['title'] = $image_attributes['title']; +if (!empty($image_attributes['title'])) { + $attributes['title'] = $image_attributes['title']; +} // Add badge number to link attributes if ($nav->getBadgeNumber()) { |
