fix: flush recipients
This commit is contained in:
parent
a187e3fff0
commit
1aaccd43cb
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue