Wrong variable name

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3247 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-12-31 13:49:17 +00:00
parent f50e2d0df9
commit 623235bd76

View file

@ -389,9 +389,9 @@ if ( !($result = $db->sql_query($sql)) )
message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql);
}
$postrow = array();
if ($row = $db->sql_fetchrow($result))
{
$postrow = array();
do
{
$postrow[] = $row;
@ -410,19 +410,19 @@ else
}
$resync = FALSE;
if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrows))
if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow))
{
$resync = TRUE;
}
elseif ($start + $board_config['posts_per_page'] > $forum_topic_data['topic_replies'])
{
$row_id = intval($forum_topic_data['topic_replies']) % intval($board_config['posts_per_page']);
if ($postrows[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrows) < $forum_topic_data['topic_replies'])
if ($postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies'])
{
$resync = TRUE;
}
}
elseif (count($postrows) < $board_config['posts_per_page'])
elseif (count($postrow) < $board_config['posts_per_page'])
{
$resync = TRUE;
}