Skip to content

Commit

Permalink
Change isset to !empty to ensure contentId is a valid string.
Browse files Browse the repository at this point in the history
  • Loading branch information
alysson-azevedo committed Jun 18, 2018
1 parent 59f625f commit d6801bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mailer/Transport/MailgunTransport.php
Expand Up @@ -250,7 +250,7 @@ protected function _processAttachments()
$attachments = [];

foreach ($this->_cakeEmail->attachments() as $name => $file) {
if (isset($file['contentId'])) {
if (!empty($file['contentId'])) {
$attachments['inline'][] = ['filePath' => '@' . $file['file'], 'remoteName' => $file['contentId']];
}
else {
Expand Down

0 comments on commit d6801bb

Please sign in to comment.