Skip to content

A free open source IT asset/license management system

Return empty string if no MAIL_REPLYTO_ADDR var set

Ivan Nieto Vivancoc082d8b90eea
diff --git a/app/Models/CheckoutAcceptance.php b/app/Models/CheckoutAcceptance.php
index e0833f3240..79a6da5415 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') : '' ;
}
/**