Fix bug #495130 and remove unnecessary free_result

git-svn-id: file:///svn/phpbb/trunk@1641 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-12-20 00:39:22 +00:00
parent b453e0981e
commit 55b0c6eabe

View file

@ -744,9 +744,6 @@ else if( $query_keywords != "" || $query_author != "" || $search_id )
message_die(GENERAL_ERROR, "Couldn't insert search results", "", __LINE__, __FILE__, $sql);
}
}
$db->sql_freeresult($result);
}
else
{
@ -1050,7 +1047,7 @@ else if( $query_keywords != "" || $query_author != "" || $search_id )
$goto_page = "[ <img src=\"" . $images['icon_gotopost'] . "\" alt=\"" . $lang['Goto_page'] . "\" />" . $lang['Goto_page'] . ": ";
$times = 1;
for($j = 0; $j < $replies + 1; $j += $board_config['topics_per_page'])
for($j = 0; $j < $replies + 1; $j += $board_config['posts_per_page'])
{
$base_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;start=$j&amp;highlight=$highlight_active");