Display assigned rank/avatar for guests. (Bug #19155)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8872 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-09-18 13:36:09 +00:00
parent 80254760d1
commit 615188cd06
2 changed files with 4 additions and 1 deletions

View file

@ -114,6 +114,7 @@
<li>[Fix] Preserve alpha transparency for created thumbnails. (Bug #16575)</li> <li>[Fix] Preserve alpha transparency for created thumbnails. (Bug #16575)</li>
<li>[Fix] Use correct port delimiter for MSSQL connections in windows. (Bug #16615)</li> <li>[Fix] Use correct port delimiter for MSSQL connections in windows. (Bug #16615)</li>
<li>[Fix] Do not allow setting forums parent to the forum itself. (Bug #18855)</li> <li>[Fix] Do not allow setting forums parent to the forum itself. (Bug #18855)</li>
<li>[Fix] Display assigned rank/avatar for guests. (Bug #19155)</li>
<li>[Change] No longer allow the direct use of MULTI_INSERT in sql_build_array. sql_multi_insert() must be used.</li> <li>[Change] No longer allow the direct use of MULTI_INSERT in sql_build_array. sql_multi_insert() must be used.</li>
<li>[Change] Display warning in ACP if config.php file is left writable.</li> <li>[Change] Display warning in ACP if config.php file is left writable.</li>

View file

@ -1021,7 +1021,7 @@ while ($row = $db->sql_fetchrow($result))
'sig_bbcode_bitfield' => '', 'sig_bbcode_bitfield' => '',
'online' => false, 'online' => false,
'avatar' => '', 'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']) : '',
'rank_title' => '', 'rank_title' => '',
'rank_image' => '', 'rank_image' => '',
'rank_image_src' => '', 'rank_image_src' => '',
@ -1045,6 +1045,8 @@ while ($row = $db->sql_fetchrow($result))
'warnings' => 0, 'warnings' => 0,
'allow_pm' => 0, 'allow_pm' => 0,
); );
get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
} }
else else
{ {