From 7125b779505165e7691217d189b9334d3cfc04a3 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 24 Feb 2023 14:58:15 +0000 Subject: [PATCH] prevent php8 warning, fixes #2216 Closes #2216 Merge request studip/studip!1447 --- app/views/calendar/single/_calhead_label_day.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/calendar/single/_calhead_label_day.php b/app/views/calendar/single/_calhead_label_day.php index 0b856419e20..df4f8bcfab4 100644 --- a/app/views/calendar/single/_calhead_label_day.php +++ b/app/views/calendar/single/_calhead_label_day.php @@ -1,3 +1,3 @@ <span class="hidden-tiny-down"><?= strftime('%A, ', $atime) ?></span> <?= strftime('%d.%m.%Y', $atime) ?> -<span class="hidden-medium-down" style="font-size: 12pt; color: #bbb; font-weight: bold;"><?= $hd = holiday($atime) ? $hd['name'] : '' ?></span> +<span class="hidden-medium-down" style="font-size: 12pt; color: #bbb; font-weight: bold;"><? if ($hd = holiday($atime)) echo $hd['name']; ?></span> -- GitLab