diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-29 08:03:25 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-29 08:03:25 +0000 |
| commit | 999be96b285494f4dc668c3669f6f8175357c800 (patch) | |
| tree | 831d53f81dbbe97529c270dff7190d1e1a5bc19b /lib/classes/forms/FileInput.php | |
| parent | cc50188fe02da7a2a27eaadf78ac85e86108865d (diff) | |
prevent php8 warnings, fixes #4925
Closes #4925
Merge request studip/studip!3695
Diffstat (limited to 'lib/classes/forms/FileInput.php')
| -rw-r--r-- | lib/classes/forms/FileInput.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/forms/FileInput.php b/lib/classes/forms/FileInput.php index 5862b3c..1822314 100644 --- a/lib/classes/forms/FileInput.php +++ b/lib/classes/forms/FileInput.php @@ -13,9 +13,9 @@ class FileInput extends Input $template->folder = $this->value; $template->id = md5(uniqid()); $template->uploadUrl = $this->attributes['upload_url']; - $template->multiple = $this->attributes['multiple'] ?? ''; + $template->multiple = $this->attributes['multiple'] ?? false; $template->accept = $this->attributes['accept'] ?? '*/*'; - $template->required = $this->attributes['required'] ?? ''; + $template->required = $this->attributes['required'] ?? false; return $template->render(); } |
