From: Tim Düsterhus Date: Wed, 5 Aug 2020 11:54:50 +0000 (+0200) Subject: Fix UploadField::supportMultipleFiles() for unlimited maxFiles X-Git-Tag: 5.3.0_Alpha_1~80^2~1^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c0eaf2d3a2e23e2f1f0484dc85fafa9308f2d3f;p=GitHub%2FWoltLab%2FWCF.git Fix UploadField::supportMultipleFiles() for unlimited maxFiles --- diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php index eb42f08c74..34c62c1294 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php @@ -65,7 +65,7 @@ class UploadField { * @return boolean */ public function supportMultipleFiles() { - return $this->maxFiles > 1; + return $this->maxFiles === null || $this->maxFiles > 1; } /**