aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-20 00:39:22 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-20 00:39:22 +0000
commit55b0c6eabeddddf68e670572d4379e25804ed622 (patch)
tree4a12ba408d66363211e81832a55195028b1d709f /phpBB/search.php
parentb453e0981ecf0622b15e358a1b15b64eeaafdded (diff)
downloadforums-55b0c6eabeddddf68e670572d4379e25804ed622.tar
forums-55b0c6eabeddddf68e670572d4379e25804ed622.tar.gz
forums-55b0c6eabeddddf68e670572d4379e25804ed622.tar.bz2
forums-55b0c6eabeddddf68e670572d4379e25804ed622.tar.xz
forums-55b0c6eabeddddf68e670572d4379e25804ed622.zip
Fix bug #495130 and remove unnecessary free_result
git-svn-id: file:///svn/phpbb/trunk@1641 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php5
1 files changed, 1 insertions, 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 = "[ <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");