Skip to content

Commit

Permalink
Fix notice if 'mail_template' array key is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
maikelRAOW committed Jun 27, 2024
1 parent ddb888b commit 043fa1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 043fa1e

Please sign in to comment.