Fixup "Groups: Display group anonymous avatar link as anonymous"

:3
This commit is contained in:
Maxim Leshchenko 2021-12-27 13:34:57 +02:00
parent 19796d5ca8
commit 68b822a808
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -92,7 +92,7 @@
</div> </div>
<div class="right_small_block"> <div class="right_small_block">
{var avatarPhoto = $club->getAvatarPhoto()} {var avatarPhoto = $club->getAvatarPhoto()}
{var avatarLink = ($avatarPhoto->isAnonymous() ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())} {var avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
<a href="{$avatarLink|nocheck}"> <a href="{$avatarLink|nocheck}">
<img src="{$club->getAvatarUrl()}" style="width: 100%; image-rendering: -webkit-optimize-contrast;" /> <img src="{$club->getAvatarUrl()}" style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
</a> </a>