aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-03-05 08:37:22 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-03-05 08:37:22 +0000
commit99f495f9dd6e279c56282280958793847ddc7b81 (patch)
tree67b4dd2ae0e93795610fe94335e48609e8af7212 /templates
parent795594f77a3a4266374db9fe4fa1f5c991f6a3cc (diff)
fixes #3649
Closes #3649 Merge request studip/studip!2643
Diffstat (limited to 'templates')
-rw-r--r--templates/forms/range_input.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/forms/range_input.php b/templates/forms/range_input.php
index 07bd934..502ddde 100644
--- a/templates/forms/range_input.php
+++ b/templates/forms/range_input.php
@@ -10,7 +10,7 @@
name="<?= htmlReady($name) ?>"
value="<?= htmlReady($value) ?>"
id="<?= $id ?>"
- min="<?= $min ?>"
- max="<?= $max ?>"
- step="<?= $step ?>"
+ <? if (isset($min)) printf(':min="%s"', $min); ?>
+ <? if (isset($max)) printf(':max="%s"', $max); ?>
+ <? if (isset($step)) printf(':max="%s"', $step); ?>
<?= $attributes ?>></range-input>