aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
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 17:38:26 +0100
commitb055e14bfc20c3bc6c5188067fc6274b910710f1 (patch)
tree8fa1768b6212b562600d4a93065246ce68815af1 /templates/sidebar
parentfe7ff347dc6638a76842640bd8fdc81d49b7d3f2 (diff)
prevent php8 warnings, fixes #5340
Closes #5340 Merge request studip/studip!4009
Diffstat (limited to 'templates/sidebar')
-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 b7aa596..4795696 100644
--- a/templates/sidebar/select-widget.php
+++ b/templates/sidebar/select-widget.php
@@ -3,7 +3,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 ? '[]' : '') ?>"