diff --git a/Web/Presenters/templates/Support/AnswerTicket.xml b/Web/Presenters/templates/Support/AnswerTicket.xml index fbb394d4..89541dd6 100644 --- a/Web/Presenters/templates/Support/AnswerTicket.xml +++ b/Web/Presenters/templates/Support/AnswerTicket.xml @@ -73,7 +73,12 @@ {if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)} - ({$comment->getUser()->getFirstName()} {iconv_substr($comment->getUser()->getLastName(), 0, 1)}.) + {var lastName = $comment->getUser()->getLastName()} + {if empty($lastName)} + {$comment->getUser()->getFirstName()} + {else} + ({$comment->getUser()->getFirstName()} {iconv_substr($lastName, 0, 1)}.) + {/if} {/if}