mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Friends: fix 500 error if user is not authorized
This commit is contained in:
parent
ca537bb6e7
commit
c1ac963ffe
1 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$thisUser->getId() == $user->getId() && $user->getFriendsOnlineCount() > 0">
|
<div n:if="$thisUser != NULL && $thisUser->getId() == $user->getId() && $user->getFriendsOnlineCount() > 0">
|
||||||
{var $friendOnlineCount = $user->getFriendsOnlineCount()}
|
{var $friendOnlineCount = $user->getFriendsOnlineCount()}
|
||||||
|
|
||||||
<div class="content_title_expanded" onclick="hidePanel(this, {$friendOnlineCount});">
|
<div class="content_title_expanded" onclick="hidePanel(this, {$friendOnlineCount});">
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
<div class="content_subtitle">
|
<div class="content_subtitle">
|
||||||
{tr("friends_online", $friendOnlineCount)}
|
{tr("friends_online", $friendOnlineCount)}
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
<a href="/friends{$user->getId()}">{_"all_title"}</a>
|
<a href="/friends{$user->getId()}?act=online">{_"all_title"}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content_list">
|
<div class="content_list">
|
||||||
|
|
Loading…
Reference in a new issue