1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

Fix error in common word update

git-svn-id: file:///svn/phpbb/trunk@2092 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-02-12 00:04:55 +00:00
parent d96c86eb67
commit 7abbe39ed2

View File

@ -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);