|
From: Nathan C. <na...@us...> - 2001-10-08 18:08:13
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv31310
Modified Files:
viewtopic.php
Log Message:
Fixed bug with non-ranked post getting the rank of the previous poster. Partially filed under #462263.
Index: viewtopic.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewtopic.php,v
retrieving revision 1.114
retrieving revision 1.115
diff -C2 -r1.114 -r1.115
*** viewtopic.php 2001/10/01 23:53:18 1.114
--- viewtopic.php 2001/10/08 18:08:09 1.115
***************
*** 687,692 ****
--- 687,702 ----
// Generate ranks
//
+
+ //
+ // Set them to empty string initially, in case we don't find a rank for this dude.
+ //
+ $poster_rank = "";
+ $rank_image = "";
+
if( $postrow[$i]['user_id'] == ANONYMOUS )
{
+ //
+ // This is redundant, but some day we might wanna stick in a rank for anon. posts.
+ //
$poster_rank = "";
$rank_image = "";
|