diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-01-18 09:12:31 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-01-18 09:12:31 +0000 |
| commit | 3a8b0e1418d65712ae2f264356273be476e8b7be (patch) | |
| tree | 24de2c5db785d6824dc1c57cfdf2f01595598d0c /lib/classes/forms/RangeInput.php | |
| parent | f39148d2a5525ccf018322168480b4a5d816b6f9 (diff) | |
fixes #3648
Closes #3648
Merge request studip/studip!2523
Diffstat (limited to 'lib/classes/forms/RangeInput.php')
| -rw-r--r-- | lib/classes/forms/RangeInput.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/classes/forms/RangeInput.php b/lib/classes/forms/RangeInput.php index 7a69e9e..14334c7 100644 --- a/lib/classes/forms/RangeInput.php +++ b/lib/classes/forms/RangeInput.php @@ -11,9 +11,9 @@ class RangeInput extends Input $template->name = $this->name; $template->value = $this->value; $template->id = md5(uniqid()); - $template->min = $this->attributes['min']; - $template->max = $this->attributes['max']; - $template->step = $this->attributes['step']; + $template->min = $this->attributes['min'] ?? null; + $template->max = $this->attributes['max'] ?? null; + $template->step = $this->attributes['step'] ?? null; $template->required = $this->required; $template->attributes = arrayToHtmlAttributes($this->attributes); return $template->render(); |
