mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
some bugfixes... cvs does not work very well at the moment. hope the change within the mssql schema do the job, i will test this tonight (i have to be at work in a few minutes).
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4157 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -131,6 +131,8 @@ function add_search_words($mode, $post_id, $post_text, $post_title = '')
|
||||
$search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array));
|
||||
$search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array));
|
||||
|
||||
@set_time_limit(0);
|
||||
|
||||
$word = array();
|
||||
$word_insert_sql = array();
|
||||
while ( list($word_in, $search_matches) = @each($search_raw_words) )
|
||||
@@ -256,7 +258,7 @@ function add_search_words($mode, $post_id, $post_text, $post_title = '')
|
||||
|
||||
if ( $match_sql != '' )
|
||||
{
|
||||
$sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
|
||||
$sql = "INSERT IGNORE INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
|
||||
SELECT $post_id, word_id, $title_match
|
||||
FROM " . SEARCH_WORD_TABLE . "
|
||||
WHERE word_text IN ($match_sql)";
|
||||
|
Reference in New Issue
Block a user