From da56f7371e634983806c3ca0de6de540759545c7 Mon Sep 17 00:00:00 2001 From: Fasse Date: Thu, 16 Apr 2015 05:49:26 +0200 Subject: [PATCH] fix error when send mail to role with 1 user --- adm_program/system/classes/email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm_program/system/classes/email.php b/adm_program/system/classes/email.php index de2c7c4e33..2ad2cecbfa 100644 --- a/adm_program/system/classes/email.php +++ b/adm_program/system/classes/email.php @@ -414,7 +414,7 @@ public function sendEmail() // if number of bcc recipients = 1 then send the mail directly to the user and not as bcc if(count($bccArray) == 1) { - $this->addAddress($bcc['address'], $bcc['name']); + $this->addAddress($bccArray[0]['address'], $bccArray[0]['name']); } else {