From b4e578c95efb4a3ebdccde2a097bfc3b88f06d60 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Mon, 27 Feb 2023 17:34:29 -0600 Subject: [PATCH] Convert the alert_email setting from string to array --- app/Models/CheckoutAcceptance.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/CheckoutAcceptance.php b/app/Models/CheckoutAcceptance.php index 45fc6ec08..c3c34b057 100644 --- a/app/Models/CheckoutAcceptance.php +++ b/app/Models/CheckoutAcceptance.php @@ -25,7 +25,10 @@ class CheckoutAcceptance extends Model { // At this point the endpoint is the same for everything. // In the future this may want to be adapted for individual notifications. - return Setting::getSettings()->alert_email; + $recipients_string = explode(',', Setting::getSettings()->alert_email); + $recipients = array_map('trim', $recipients_string); + + return array_filter($recipients); } /**