update to fix array count of emails (#6046)

at line 269 if this is set to ZERO all emails are bcc. this causes problems for normal recipients and scripts that depend on a TO field existing.

Setting to 1 will have it be a normal to: if its 1 email address and if its more than 1 it will do the BCC steps.
This commit is contained in:
TNSSF 2021-09-01 11:35:58 -06:00 committed by GitHub
parent 748c54025d
commit a5705406b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@
$to = str_replace(" ", "", $to);
$to = str_replace(";", ",", $to);
$to_array = explode(",", $to);
if (count($to_array) == 0) {
if (count($to_array) == 1) {
$mail->AddAddress($to);
}
else {