Skip to content

Commit da56f73

Browse files
committed
fix error when send mail to role with 1 user
1 parent d70540d commit da56f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adm_program/system/classes/email.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public function sendEmail()
414414
// if number of bcc recipients = 1 then send the mail directly to the user and not as bcc
415415
if(count($bccArray) == 1)
416416
{
417-
$this->addAddress($bcc['address'], $bcc['name']);
417+
$this->addAddress($bccArray[0]['address'], $bccArray[0]['name']);
418418
}
419419
else
420420
{

0 commit comments

Comments
 (0)