Fix the check if this is a single file upload
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 19 Jun 2024 09:42:16 +0000 (11:42 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 19 Jun 2024 09:42:16 +0000 (11:42 +0200)
com.woltlab.wcf/templates/shared_fileProcessorFormField.tpl

index 0d0077f2d10e509ac7a4f9d9c015fc626bc3d461..1638c8244ed84d0004e19f357a04b1d120955ceb 100644 (file)
@@ -1,5 +1,5 @@
 {assign var="files" value=$field->getFiles()}
-{if $field->isSingleFileUpload() === 1 && $imageOnly}
+{if $field->isSingleFileUpload() && $imageOnly}
        <div class="fileUpload__preview">
                {if $field->getValue()}
                        {assign var="file" value=$files|reset}