fix: flush recipients

This commit is contained in:
Maxime 2023-02-03 11:34:22 +01:00
parent a187e3fff0
commit 1aaccd43cb
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ class MailTemplate implements \JsonSerializable
*/
public function recipients(array $recipients): MailTemplate
{
if (!empty($recipients)) {
$this->recipients = [];
if (! empty($recipients)) {
foreach ($recipients as $recipient) {
if (!empty($recipient[0]) && is_string($recipient[0])) {
$data = [