From d613135009aa0548cbc1f0ede692991a4102d2e9 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Fri, 10 Aug 2018 12:02:36 +0300 Subject: [PATCH] Mail fix 5 --- common/components/MailerComponent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/components/MailerComponent.php b/common/components/MailerComponent.php index cdd2d86..6adf95e 100644 --- a/common/components/MailerComponent.php +++ b/common/components/MailerComponent.php @@ -36,7 +36,8 @@ class MailerComponent extends Component $moreMail = explode(';', $mail->user); $setTo = [$settings->email]; if (!empty($moreMail)) { - $setTo = array_merge($setTo, $moreMail); + if ($moreMail[0] != '') + $setTo = array_merge($setTo, $moreMail); } -- libgit2 0.21.4