diff --git a/lib/zin/wg/fileselector/v1.php b/lib/zin/wg/fileselector/v1.php index 35193ff680..cb1b0da36b 100644 --- a/lib/zin/wg/fileselector/v1.php +++ b/lib/zin/wg/fileselector/v1.php @@ -64,7 +64,7 @@ class fileSelector extends wg /* Auto prepend suffix "[]" to multiple mode. */ $name = $this->prop('name'); - if(!str_ends_with($name, ']') && ($this->prop('multiple') !== false || $this->prop('maxFileCount') === 1)) + if(!str_ends_with($name, ']') && ($this->prop('multiple') !== false || $this->prop('maxFileCount') !== 1)) { $this->setProp('name', $name . '[]'); }