Skip to content

Commit

Permalink
fix for ranks in top.php #4967 (#4975)
Browse files Browse the repository at this point in the history
* fix for ranks in top.php #4967

Fixes: #4967
  • Loading branch information
Jimmi08 committed Feb 13, 2023
1 parent f5096ae commit 58cb734
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions top.php
Expand Up @@ -179,7 +179,7 @@
while ($row = $sql2->fetch())
{
//$ldata = get_level($row['user_id'], $row['user_plugin_forum_posts'], $row['user_comments'], $row['user_chats'], $row['user_visits'], $row['user_join'], $row['user_admin'], $row['user_perms'], $pref);
$ldata = $rank->getRanks($row, (USER && $forum->isModerator(USERID)));
$ldata = $rank->getRanks($row['user_id'], (USER && $forum->isModerator(USERID)));

if(vartrue($ldata['special']))
{
Expand Down Expand Up @@ -236,7 +236,7 @@
while ($row = $sql->fetch())
{
// TODO - Custom ranking (comments), LANs
$ldata = $rank->getRanks($row);
$ldata = $rank->getRanks($row['user_id']);
if(vartrue($ldata['special']))
{
$r = $ldata['special'];
Expand Down Expand Up @@ -284,7 +284,7 @@
while ($row = $sql->fetch())
{
// TODO - Custom ranking (chat), LANs
$ldata = $rank->getRanks($row);
$ldata = $rank->getRanks(['user_id']);
if(vartrue($ldata['special']))
{
$r = $ldata['special'];
Expand Down Expand Up @@ -316,4 +316,3 @@
}
}
require_once(FOOTERF);
?>

0 comments on commit 58cb734

Please sign in to comment.