remove alert emails from cc

This commit is contained in:
Godfrey M 2024-10-24 16:01:17 -07:00
parent 56365495a1
commit ce68f550d8

View file

@ -55,10 +55,6 @@ class CheckoutableListener
$alertsEmailsArray = [];
$adminCcEmailsArray = [];
if($settings->alert_email !== '') {
$emailsArray = $settings->alert_email;
$alertsEmailsArray = array_map('trim', explode(',', $emailsArray));
}
if($settings->admin_cc_email !== '') {
$adminCcEmail = $settings->admin_cc_email;
$adminCcEmailsArray = array_map('trim', explode(',', $adminCcEmail));
@ -128,10 +124,6 @@ class CheckoutableListener
$alertsEmailsArray = [];
$adminCcEmailsArray = [];
if($settings->alert_email !== '') {
$emailsArray = $settings->alert_email;
$alertsEmailsArray = array_map('trim', explode(',', $emailsArray));
}
if($settings->admin_cc_email !== '') {
$adminCcEmail = $settings->admin_cc_email;
$adminCcEmailsArray = array_map('trim', explode(',', $adminCcEmail));