1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12993] Improve get_user_ranks

Explanation in http://area51.phpbb.com/phpBB/viewtopic.php?f=108&t=46051

PHPBB3-12993
This commit is contained in:
Forumhulp.com
2014-08-04 14:11:25 +02:00
committed by Tristan Darricau
parent a82a88b555
commit 8671e40217
5 changed files with 31 additions and 15 deletions

View File

@@ -284,7 +284,7 @@ switch ($mode)
}
$rank_title = $rank_img = $rank_img_src = '';
get_user_rank($row['user_rank'], (($row['user_id'] == ANONYMOUS) ? false : $row['user_posts']), $rank_title, $rank_img, $rank_img_src);
get_user_rank($row, (($row['user_id'] == ANONYMOUS) ? false : $row['user_posts']), $rank_title, $rank_img, $rank_img_src);
$template->assign_block_vars('group.user', array(
'USER_ID' => $row['user_id'],
@@ -1083,7 +1083,7 @@ switch ($mode)
$rank_title = $rank_img = $rank_img_src = '';
if ($group_row['group_rank'])
{
get_user_rank($group_row['group_rank'], false, $rank_title, $rank_img, $rank_img_src);
get_user_rank($group_roup, false, $rank_title, $rank_img, $rank_img_src);
if ($rank_img)
{