aboutsummaryrefslogtreecommitdiff
path: root/templates/header-navigation-item.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-05-04 14:18:41 +0000
committerMoritz Strohm <strohm@data-quest.de>2022-05-04 14:18:41 +0000
commit0d95625c2ab0eabe98e724ab79be0087093cc35b (patch)
treef911e16bfb52f4aceacf9e9ad4c8d31923e26a6e /templates/header-navigation-item.php
parente1f835675363c17fbf5d269f6d1d1f84b6727886 (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.php4
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()) {