diff options
| author | natec <natec@users.sourceforge.net> | 2001-10-08 18:08:09 +0000 |
|---|---|---|
| committer | natec <natec@users.sourceforge.net> | 2001-10-08 18:08:09 +0000 |
| commit | a57dd50f7652ac11840db202a37dfa8c71e87103 (patch) | |
| tree | df65358730d35e6d4d617a4e13ac1a638d526566 /phpBB/viewtopic.php | |
| parent | efe2b06d8186a71afec48f64af123629b63bfd02 (diff) | |
| download | forums-a57dd50f7652ac11840db202a37dfa8c71e87103.tar forums-a57dd50f7652ac11840db202a37dfa8c71e87103.tar.gz forums-a57dd50f7652ac11840db202a37dfa8c71e87103.tar.bz2 forums-a57dd50f7652ac11840db202a37dfa8c71e87103.tar.xz forums-a57dd50f7652ac11840db202a37dfa8c71e87103.zip | |
Fixed bug with non-ranked post getting the rank of the previous poster. Partially filed under #462263.
git-svn-id: file:///svn/phpbb/trunk@1139 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 494f018e41..d1859b96ab 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -686,8 +686,18 @@ for($i = 0; $i < $total_posts; $i++) // // 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 = ""; } |
