From 7abbe39ed2b905db84b0dc3b4f92d892a0afa25e Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" <psotfx@users.sourceforge.net> Date: Tue, 12 Feb 2002 00:04:55 +0000 Subject: Fix error in common word update git-svn-id: file:///svn/phpbb/trunk@2092 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/search.php') diff --git a/phpBB/includes/search.php b/phpBB/includes/search.php index 98d570c17f..2cbe4b1fbe 100644 --- a/phpBB/includes/search.php +++ b/phpBB/includes/search.php @@ -243,7 +243,10 @@ function add_search_words($post_id, $post_text, $post_title = "") } } - remove_common('single', 0.4, $word); + if ( $mode == 'single' ) + { + remove_common('single', 0.4, $word); + } return; } @@ -298,7 +301,7 @@ function remove_common($mode, $fraction, $word_id_list = array()) $common_word_id = ""; while( $row = $db->sql_fetchrow($result) ) { - $common_word_id = ( $common_word_id != "" ) ? ", " . $row['word_id'] : $row['word_id']; + $common_word_id .= ( $common_word_id != "" ) ? ", " . $row['word_id'] : $row['word_id']; } $db->sql_freeresult($result); -- cgit v1.2.1