From a5705406b1bba939a95afaf40326e43243e7a00c Mon Sep 17 00:00:00 2001 From: TNSSF Date: Wed, 1 Sep 2021 11:35:58 -0600 Subject: [PATCH] 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. --- secure/v_mailto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secure/v_mailto.php b/secure/v_mailto.php index 3c712a49e4..4ac5da15bf 100644 --- a/secure/v_mailto.php +++ b/secure/v_mailto.php @@ -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 {