Friends: fix 500 error if user is not authorized

This commit is contained in:
veselcraft 2022-08-01 15:23:50 +03:00
parent ca537bb6e7
commit c1ac963ffe
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -201,7 +201,7 @@
</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()}
<div class="content_title_expanded" onclick="hidePanel(this, {$friendOnlineCount});">
@ -211,7 +211,7 @@
<div class="content_subtitle">
{tr("friends_online", $friendOnlineCount)}
<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 class="content_list">