aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-02-22 16:20:11 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-02-22 16:20:11 +0000
commit97a8eb40139ddb299754a883508c9250ef544f36 (patch)
tree43ca2cbc3ebccdc2f8043e0c7f81acbd219efa13 /phpBB/viewtopic.php
parent87c3b60b179132e8e2d7b0b794b81f566d0558ad (diff)
downloadforums-97a8eb40139ddb299754a883508c9250ef544f36.tar
forums-97a8eb40139ddb299754a883508c9250ef544f36.tar.gz
forums-97a8eb40139ddb299754a883508c9250ef544f36.tar.bz2
forums-97a8eb40139ddb299754a883508c9250ef544f36.tar.xz
forums-97a8eb40139ddb299754a883508c9250ef544f36.zip
trying to fix two conversion issues
- anonymous user not entered correctly or entered with user id 0 (need to be tested) - ips not converted git-svn-id: file:///svn/phpbb/trunk@7034 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 1c05af3d11..2898d56e72 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1215,6 +1215,13 @@ $template->assign_vars(array(
$first_unread = $post_unread = false;
for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
{
+ // A non-existing rowset only happens if there was no user present for the entered poster_id
+ // This could be a broken posts table.
+ if (!isset($rowset[$post_list[$i]]))
+ {
+ continue;
+ }
+
$row =& $rowset[$post_list[$i]];
$poster_id = $row['user_id'];