From a57dd50f7652ac11840db202a37dfa8c71e87103 Mon Sep 17 00:00:00 2001 From: natec Date: Mon, 8 Oct 2001 18:08:09 +0000 Subject: [PATCH] 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 --- phpBB/viewtopic.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 = ""; }