1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

fix for ranks in top.php #4967 (#4975)

* fix for ranks in top.php #4967

Fixes: #4967
This commit is contained in:
Jimako 2023-02-13 10:23:32 +01:00 committed by GitHub
parent f5096ae47d
commit 58cb73449e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ if ($action == 'top')
while ($row = $sql2->fetch()) 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 = 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'])) if(vartrue($ldata['special']))
{ {
@ -236,7 +236,7 @@ if ($action == 'top')
while ($row = $sql->fetch()) while ($row = $sql->fetch())
{ {
// TODO - Custom ranking (comments), LANs // TODO - Custom ranking (comments), LANs
$ldata = $rank->getRanks($row); $ldata = $rank->getRanks($row['user_id']);
if(vartrue($ldata['special'])) if(vartrue($ldata['special']))
{ {
$r = $ldata['special']; $r = $ldata['special'];
@ -284,7 +284,7 @@ if ($action == 'top')
while ($row = $sql->fetch()) while ($row = $sql->fetch())
{ {
// TODO - Custom ranking (chat), LANs // TODO - Custom ranking (chat), LANs
$ldata = $rank->getRanks($row); $ldata = $rank->getRanks(['user_id']);
if(vartrue($ldata['special'])) if(vartrue($ldata['special']))
{ {
$r = $ldata['special']; $r = $ldata['special'];
@ -316,4 +316,3 @@ if ($action == 'top')
} }
} }
require_once(FOOTERF); require_once(FOOTERF);
?>