mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +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>
|
||||||
<div class="ovk-avView">
|
<div class="ovk-avView">
|
||||||
<div class="ovk-avView--el" n:foreach="$user->getGifts(1, 3) as $giftDescriptor">
|
<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()}">
|
<a href="{$hideInfo ? 'javascript:false' : $giftDescriptor->sender->getURL()}">
|
||||||
<img class="ava"
|
<img class="ava"
|
||||||
|
|
Loading…
Reference in a new issue