From 6c0eaf2d3a2e23e2f1f0484dc85fafa9308f2d3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 5 Aug 2020 13:54:50 +0200 Subject: [PATCH] Fix UploadField::supportMultipleFiles() for unlimited maxFiles --- .../install/files/lib/system/file/upload/UploadField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /** -- 2.20.1