mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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:
parent
f50e2d0df9
commit
623235bd76
1 changed files with 6 additions and 6 deletions
|
@ -389,14 +389,14 @@ if ( !($result = $db->sql_query($sql)) )
|
||||||
message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $row = $db->sql_fetchrow($result) )
|
$postrow = array();
|
||||||
|
if ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$postrow = array();
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
$postrow[] = $row;
|
$postrow[] = $row;
|
||||||
}
|
}
|
||||||
while ( $row = $db->sql_fetchrow($result) );
|
while ($row = $db->sql_fetchrow($result));
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$total_posts = count($postrow);
|
$total_posts = count($postrow);
|
||||||
|
@ -410,19 +410,19 @@ else
|
||||||
}
|
}
|
||||||
|
|
||||||
$resync = FALSE;
|
$resync = FALSE;
|
||||||
if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrows))
|
if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow))
|
||||||
{
|
{
|
||||||
$resync = TRUE;
|
$resync = TRUE;
|
||||||
}
|
}
|
||||||
elseif ($start + $board_config['posts_per_page'] > $forum_topic_data['topic_replies'])
|
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']);
|
$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;
|
$resync = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (count($postrows) < $board_config['posts_per_page'])
|
elseif (count($postrow) < $board_config['posts_per_page'])
|
||||||
{
|
{
|
||||||
$resync = TRUE;
|
$resync = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue