From 59ba02048904044ba90d6163e5973e3384e65a0b Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Thu, 29 Sep 2016 09:35:47 +1300 Subject: [PATCH] BUGFIX: Use implode() instead of explode() on array --- code/FileAttachmentField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/FileAttachmentField.php b/code/FileAttachmentField.php index 602a282..ae2c40c 100644 --- a/code/FileAttachmentField.php +++ b/code/FileAttachmentField.php @@ -510,7 +510,7 @@ public function imagesOnly() { */ public function setAcceptedMimeTypes($types = array ()) { if(is_array($types)) { - $types = explode(',', $types); + $types = implode(',', $types); } $this->settings['acceptedMimeTypes'] = $types;