Skip to content

Commit

Permalink
Fix Call to a member function getFirstName() on null in notification.…
Browse files Browse the repository at this point in the history
…blade.php - closes #4132
  • Loading branch information
freescout-help-desk committed Jul 17, 2024
1 parent 8172db9 commit 09f4908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/emails/user/notification.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
[{{ $mailbox->name }}]
</p>
<p style="display:inline; font-family:Arial, 'Helvetica Neue', Helvetica, Tahoma, sans-serif; color:#444; line-height:22px; font-size:16px; margin:0;">
{{ __('Replying to this notification will email :name', ['name' => $customer->getFirstName(true)]) }} (<a href="mailto:{{ $conversation->customer_email }}" style="color:#3f8abf; text-decoration:none;">{{ $conversation->customer_email }}</a>)
{{ __('Replying to this notification will email :name', ['name' => ($customer ? $customer->getFirstName(true) : '')]) }} (<a href="mailto:{{ $conversation->customer_email }}" style="color:#3f8abf; text-decoration:none;">{{ $conversation->customer_email }}</a>)
@if ($conversation->getCcArray())
<br/><small>CC: {{ implode(', ', $conversation->getCcArray()) }}</small>
@endif
Expand Down

0 comments on commit 09f4908

Please sign in to comment.