Fixed error 500 when viewing profiles as guest.
This commit is contained in:
parent
b7de5acfd8
commit
6bfa3d7238
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ if($userInfo->isDeleted()) {
|
|||
$notices = [];
|
||||
|
||||
$userRank = $users->getUserRank($userInfo);
|
||||
$viewerRank = $users->getUserRank($viewerInfo);
|
||||
$viewerRank = $viewingAsGuest ? 0 : $users->getUserRank($viewerInfo);
|
||||
|
||||
$activeBanInfo = $msz->tryGetActiveBan($userInfo);
|
||||
$isBanned = $activeBanInfo !== null;
|
||||
|
|
Loading…
Reference in a new issue