aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-03-05 14:41:44 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-03-05 14:41:44 +0000
commit1306c692710fdbc86da1a7c2b47efa47cd27b7fc (patch)
tree9e1ef13406dfa1ec79c4466422fa2c3271d8763a /templates
parent816b401d16119b5251c4217db8cc6e26b3b71c65 (diff)
prevent php8 warnings, fixes #5340
Closes #5340 Merge request studip/studip!4009
Diffstat (limited to 'templates')
-rw-r--r--templates/sidebar/select-widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/sidebar/select-widget.php b/templates/sidebar/select-widget.php
index 169e12e..f926d51 100644
--- a/templates/sidebar/select-widget.php
+++ b/templates/sidebar/select-widget.php
@@ -4,7 +4,7 @@
method="<?= $method ?>">
<?= \SelectWidget::arrayToHiddenInput($params) ?>
<?= (strtolower($method) == 'post') ? CSRFProtection::tokenTag() : ''; ?>
- <select class="sidebar-selectlist <?= $class ?> <? if ($__is_nested): ?>nested-select<? endif; ?>"
+ <select class="sidebar-selectlist <?= $class ?? '' ?> <? if ($__is_nested): ?>nested-select<? endif; ?>"
<? !empty($size) ? printf('size="%u"', $size) : '' ?>
<?= !empty($attributes) ? arrayToHtmlAttributes($attributes) : '' ?>
name="<?= sprintf('%s%s', htmlReady($name), $multiple ? '[]' : '') ?>"