Skip to content

Commit

Permalink
Removed empty merge vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
addgod authored Nov 11, 2019
1 parent e7094f8 commit 726f198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MandrillTemplateChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function send($notifiable, Notification $notification): void
->setFromEmail($fromAddress ?? config('mail.from.address'))
->setFromName($fromName ?? config('mail.from.name'))
->addHeader('Reply-To', "$replyToName <$replyToAddress>")
->setMergeVars($templateMessage->toArray());
->setMergeVars(array_filter_recursive($templateMessage->toArray()));

foreach ($templateMessage->recipients as $entry) {
list ($email, $name, $type) = $entry;
Expand Down

0 comments on commit 726f198

Please sign in to comment.