Skip to content

Commit

Permalink
BUGFIX: Use implode() instead of explode() on array
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino authored Sep 28, 2016
1 parent a098d04 commit 59ba020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/FileAttachmentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 59ba020

Please sign in to comment.