mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Error with adding search matches, wrong variable being used for insert ... select
git-svn-id: file:///svn/phpbb/trunk@1953 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d0a241eaff
commit
cd354884f6
1 changed files with 2 additions and 4 deletions
|
@ -192,12 +192,10 @@ function add_search_words($post_id, $post_text, $post_title = "")
|
|||
}
|
||||
}
|
||||
|
||||
$word_sql_in = implode(", ", $match_word);
|
||||
|
||||
$sql = "INSERT 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 ($word_sql_in)";
|
||||
WHERE word_text IN ($word_text_sql)";
|
||||
$result = $db->sql_query($sql);
|
||||
if( !$result )
|
||||
{
|
||||
|
@ -206,7 +204,7 @@ function add_search_words($post_id, $post_text, $post_title = "")
|
|||
}
|
||||
}
|
||||
|
||||
remove_common("single", 40, $word_id_list);
|
||||
remove_common("single", 0.4, $word_id_list);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue