From 043fa1e13efd1e80c8d73ec0e4e352a43d900ffc Mon Sep 17 00:00:00 2001 From: Maikel Haarmans Date: Thu, 27 Jun 2024 10:10:18 +0200 Subject: [PATCH] Fix notice if 'mail_template' array key is not set --- src/MailService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MailService.php b/src/MailService.php index 1b15251..ed74a8d 100644 --- a/src/MailService.php +++ b/src/MailService.php @@ -62,7 +62,7 @@ public function gfNotificationTemplateSetting(array $fields): array */ public function gfNotificationApplyTemplate($email, $messageFormat, $notification) { - $notificationTemplate = $notification['mail_template']; + $notificationTemplate = $notification['mail_template'] ?? null; if ($notificationTemplate) { $template = $notificationTemplate;