mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
Redundant 'else' keyword.
This commit is contained in:
parent
95575e1096
commit
16d79daeb1
24 changed files with 218 additions and 192 deletions
|
@ -394,12 +394,12 @@ function add_search_words($post_id, $post_message, $topic_title = '', $only_retu
|
|||
|
||||
if ($only_return_words || $bb_cfg['search_engine_type'] == 'sphinx') {
|
||||
return join("\n", $words);
|
||||
} else {
|
||||
DB()->query("DELETE FROM " . BB_POSTS_SEARCH . " WHERE post_id = $post_id");
|
||||
}
|
||||
|
||||
if ($words_sql = DB()->escape(join("\n", $words))) {
|
||||
DB()->query("REPLACE INTO " . BB_POSTS_SEARCH . " (post_id, search_words) VALUES ($post_id, '$words_sql')");
|
||||
}
|
||||
DB()->query("DELETE FROM " . BB_POSTS_SEARCH . " WHERE post_id = $post_id");
|
||||
|
||||
if ($words_sql = DB()->escape(join("\n", $words))) {
|
||||
DB()->query("REPLACE INTO " . BB_POSTS_SEARCH . " (post_id, search_words) VALUES ($post_id, '$words_sql')");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue