From 643b2185ae9355394074c234d7a3f93525ddb29b Mon Sep 17 00:00:00 2001
From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr>
Date: Mon, 7 Oct 2019 13:56:34 +0200
Subject: [PATCH] =?UTF-8?q?Ajout=20de=20garde=20suppl=C3=A9mentaire=20lors?=
 =?UTF-8?q?=20de=20l'envoi=20de=20mail?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Notification/src/Notification/Service/NotifierService.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/Notification/src/Notification/Service/NotifierService.php b/module/Notification/src/Notification/Service/NotifierService.php
index 7d1c9005a..c71360977 100644
--- a/module/Notification/src/Notification/Service/NotifierService.php
+++ b/module/Notification/src/Notification/Service/NotifierService.php
@@ -136,10 +136,10 @@ class NotifierService
         $mail = $this->mailerService->createNewMessage($html, $subject);
         $mail->setTo($to);
 
-        if ($cc) {
+        if ($cc AND $cc !== []) {
             $mail->setCc($cc);
         }
-        if ($bcc) {
+        if ($bcc AND $bcc !== []) {
             $mail->setBcc($bcc);
         }
 
-- 
GitLab