From c082d8b90eeae545f1b747c2041bc204c96bc69d Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Wed, 23 Nov 2022 18:22:31 -0600 Subject: [PATCH] Return empty string if no MAIL_REPLYTO_ADDR var set --- app/Models/CheckoutAcceptance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/CheckoutAcceptance.php b/app/Models/CheckoutAcceptance.php index e0833f324..79a6da541 100644 --- a/app/Models/CheckoutAcceptance.php +++ b/app/Models/CheckoutAcceptance.php @@ -21,7 +21,7 @@ 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 config('mail.reply_to.address'); + return (config('mail.reply_to.address')) ? config('mail.reply_to.address') : '' ; } /**