aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-05-27 09:59:12 +0000
committerMoritz Strohm <strohm@data-quest.de>2022-05-27 09:59:12 +0000
commit74cde461f8dd1b0b83ea9e031822603e9c280b56 (patch)
tree1b1da650263c78e5df9d3751c7d74d0b8919d1d2 /templates/sidebar
parent956957c167dfc9675d1ec14a23e3fe75bf6c1a8d (diff)
fix for BIESt #971
Closes #971 Merge request studip/studip!578
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 e0866aa..73d2315 100644
--- a/templates/sidebar/select-widget.php
+++ b/templates/sidebar/select-widget.php
@@ -1,7 +1,7 @@
<form action="<?= URLHelper::getLink($url) ?>" method="<?= $method ?>">
<?= \SelectWidget::arrayToHiddenInput($params) ?>
<?= (strtolower($method) == 'post') ? CSRFProtection::tokenTag() : ''; ?>
- <select class="sidebar-selectlist <?= $class ?> <? if ($__is_nested): ?>nested-select<? endif; ?>" <? if ($size) printf('size="%u"', $size); ?> <?= $attributes ? arrayToHtmlAttributes($attributes) : '' ?>
+ <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 ? '[]' : '') ?>" <? if ($multiple) echo 'multiple'; ?>>
<? foreach ($elements as $element): ?>