Skip to content

Commit

Permalink
Fix Undefined variable $customer in thread.php - closes #4066
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Jun 10, 2024
1 parent 08a5d5f commit 0ff901e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/conversations/partials/thread.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<div class="thread-recipients">
@action('thread.before_recipients', $thread, $loop, $threads, $conversation, $mailbox)
@if (($thread->isUserMessage() && $thread->from && array_key_exists($thread->from, $mailbox->getAliases()))
|| ($thread->isCustomerMessage() && count($customer->emails) > 1)
|| ($thread->isCustomerMessage() && isset($customer) && count($customer->emails) > 1)
)
<div>
<strong>
Expand All @@ -118,7 +118,7 @@
|| $loop->last
|| ($thread->type == App\Thread::TYPE_CUSTOMER && count($thread->getToArray($mailbox->getEmails())))
|| ($thread->type == App\Thread::TYPE_MESSAGE && !in_array($conversation->customer_email, $thread->getToArray()))
|| ($thread->type == App\Thread::TYPE_MESSAGE && count($customer->emails) > 1)
|| ($thread->type == App\Thread::TYPE_MESSAGE && isset($customer) && count($customer->emails) > 1)
|| \Helper::isPrint())
&& $thread->getToArray()
)
Expand Down

0 comments on commit 0ff901e

Please sign in to comment.