From: Cyperghost Date: Wed, 19 Jun 2024 09:42:16 +0000 (+0200) Subject: Fix the check if this is a single file upload X-Git-Tag: 6.1.0_Alpha_1~41^2~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da4fb47d166283b940a86e21b0bf52d1230d18b7;p=GitHub%2FWoltLab%2FWCF.git Fix the check if this is a single file upload --- diff --git a/com.woltlab.wcf/templates/shared_fileProcessorFormField.tpl b/com.woltlab.wcf/templates/shared_fileProcessorFormField.tpl index 0d0077f2d1..1638c8244e 100644 --- a/com.woltlab.wcf/templates/shared_fileProcessorFormField.tpl +++ b/com.woltlab.wcf/templates/shared_fileProcessorFormField.tpl @@ -1,5 +1,5 @@ {assign var="files" value=$field->getFiles()} -{if $field->isSingleFileUpload() === 1 && $imageOnly} +{if $field->isSingleFileUpload() && $imageOnly}
{if $field->getValue()} {assign var="file" value=$files|reset}