aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/search.php')
-rw-r--r--phpBB/includes/search.php7
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);