@@ -428,7 +428,9 @@ |
||
| 428 | 428 | if ($index == TOPICS_TABLE . '_' . $ts_name . '_topic_title') |
| 429 | 429 | { |
| 430 | 430 | $indexed = true; |
| 431 | - } else { |
|
| 431 | + } |
|
| 432 | + else |
|
| 433 | + { |
|
| 432 | 434 | $sql = 'DROP INDEX ' . $index; |
| 433 | 435 | $this->db->sql_query($sql); |
| 434 | 436 | } |
@@ -153,7 +153,9 @@ |
||
| 153 | 153 | ts_rank_cd(to_tsvector('$ts_name', t.topic_title), '$ts_query_text', 32) AS score"; |
| 154 | 154 | $where = "ts_rank_cd(to_tsvector('$ts_name', t.topic_title), '$ts_query_text', 32) >= " . (float) $sensitivity ; |
| 155 | 155 | $unix_ts = 'extract(epoch from current_timestamp)::integer'; |
| 156 | - } else { |
|
| 156 | + } |
|
| 157 | + else |
|
| 158 | + { |
|
| 157 | 159 | $select = "f.forum_id, f.forum_name, t.*, |
| 158 | 160 | MATCH (t.topic_title) AGAINST ('" . $this->db->sql_escape($topic_title) . "') AS score"; |
| 159 | 161 | $where = "MATCH (t.topic_title) AGAINST ('" . $this->db->sql_escape($topic_title) . "') >= " . (float) $sensitivity; |