Fix UploadField::supportMultipleFiles() for unlimited maxFiles
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 5 Aug 2020 11:54:50 +0000 (13:54 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 5 Aug 2020 11:54:50 +0000 (13:54 +0200)
wcfsetup/install/files/lib/system/file/upload/UploadField.class.php

index eb42f08c745ba0310bddeed7fd8b3df0f07e2e12..34c62c1294559f064203177c331882e6e42d7b88 100644 (file)
@@ -65,7 +65,7 @@ class UploadField {
         * @return boolean
         */
        public function supportMultipleFiles() {
-               return $this->maxFiles > 1;
+               return $this->maxFiles === null || $this->maxFiles > 1;
        }
        
        /**