Improve and slightly fix the last commit

This commit is contained in:
Maxim Leshchenko 2021-12-07 20:11:51 +02:00
parent 3bbdb3c85b
commit 9826296256
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -74,8 +74,8 @@
<a href="{$comment->getUser()->getURL()}">
<span class="nobold">
{var lastName = $comment->getUser()->getLastName()}
{if empty($lastName)}
{$comment->getUser()->getFirstName()}
{if empty($lastName) || $lastName == " "}
({$comment->getUser()->getFirstName()})
{else}
({$comment->getUser()->getFirstName()} {iconv_substr($lastName, 0, 1)}.)
{/if}