Completed
Pull Request — master (#23)
by
unknown
02:00
created
acp/similar_topics_module.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -428,7 +428,9 @@
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
core/similar_topics.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.