From 0367d4b627c1a371453f1823fd24679f1b8f046f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuli=20Sillanp=C3=A4=C3=A4?= <samuli.sillanpaa@helsinki.fi> Date: Tue, 20 Oct 2020 15:38:39 +0300 Subject: [PATCH] Feedbackforms: handle undefined reply-to address. --- module/VuFind/src/VuFind/Controller/FeedbackController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/FeedbackController.php b/module/VuFind/src/VuFind/Controller/FeedbackController.php index dcc1e8294ba..e44147c9e23 100644 --- a/module/VuFind/src/VuFind/Controller/FeedbackController.php +++ b/module/VuFind/src/VuFind/Controller/FeedbackController.php @@ -183,7 +183,8 @@ class FeedbackController extends AbstractBase $emailSubject, $emailMessage, null, - new Address($replyToEmail, $replyToName) + !empty($replyToEmail) + ? new Address($replyToEmail, $replyToName) : null ); return [true, null]; } catch (MailException $e) { -- GitLab