Commit cc6465aa authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Filtrage si email vide pour ne pas planter l'envoie de mail.

parent 4fe66c55
Loading
Loading
Loading
Loading
Loading
+3 −2
Changes for module/Intervenant/src/Controller/NoteController.php: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -149,8 +149,9 @@ class NoteController extends AbstractController
                $mail->subject($subject);
                $mail->text($content);
                $mail->html($content);
                if (!empty($copy)) {
                   $mail->bcc(...array_map('trim', explode(';', $copy)));
                $copies = array_filter(array_map('trim', explode(';', (string)$copy)));
                if (!empty($copies)) {
                    $mail->bcc(...$copies);
                }
                $this->getMailService()->send($mail);
                //Création d'une trace de l'envoi dans les notes de l'intervenant