diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-12 00:04:55 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-12 00:04:55 +0000 |
commit | 7abbe39ed2b905db84b0dc3b4f92d892a0afa25e (patch) | |
tree | ed193a6c0c1ea0b0316fc9d3488855c66e80818f /phpBB/includes/search.php | |
parent | d96c86eb678c9d56ee6761bded1cd803b6d18068 (diff) | |
download | forums-7abbe39ed2b905db84b0dc3b4f92d892a0afa25e.tar forums-7abbe39ed2b905db84b0dc3b4f92d892a0afa25e.tar.gz forums-7abbe39ed2b905db84b0dc3b4f92d892a0afa25e.tar.bz2 forums-7abbe39ed2b905db84b0dc3b4f92d892a0afa25e.tar.xz forums-7abbe39ed2b905db84b0dc3b4f92d892a0afa25e.zip |
Fix error in common word update
git-svn-id: file:///svn/phpbb/trunk@2092 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search.php')
-rw-r--r-- | phpBB/includes/search.php | 7 |
1 files changed, 5 insertions, 2 deletions
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); |