From 55b0c6eabeddddf68e670572d4379e25804ed622 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 20 Dec 2001 00:39:22 +0000 Subject: [PATCH] Fix bug #495130 and remove unnecessary free_result git-svn-id: file:///svn/phpbb/trunk@1641 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpBB/search.php b/phpBB/search.php index 88a67cd983..fcb02cafc6 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -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 = "[ \""" . $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 . "&start=$j&highlight=$highlight_active");