mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
Gifts: fix crash if user is not logged in
This commit is contained in:
parent
ac733fb462
commit
e782d502b8
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@
|
|||
</div>
|
||||
<div class="ovk-avView">
|
||||
<div class="ovk-avView--el" n:foreach="$user->getGifts(1, 3) as $giftDescriptor">
|
||||
{var hideInfo = $giftDescriptor->anon ? $thisUser->getId() !== $user->getId() : false}
|
||||
{var hideInfo = !is_null($thisUser) ? ($giftDescriptor->anon ? $thisUser->getId() !== $user->getId() : false) : false}
|
||||
|
||||
<a href="{$hideInfo ? 'javascript:false' : $giftDescriptor->sender->getURL()}">
|
||||
<img class="ava"
|
||||
|
|
Loading…
Reference in a new issue