mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13454] Remove unused variables
Part 4 PHPBB3-13454
This commit is contained in:
@@ -594,7 +594,6 @@ class fulltext_native extends \phpbb\search\base
|
||||
$id_ary = array();
|
||||
|
||||
$sql_where = array();
|
||||
$group_by = false;
|
||||
$m_num = 0;
|
||||
$w_num = 0;
|
||||
|
||||
|
@@ -501,7 +501,6 @@ class fulltext_postgres extends \phpbb\search\base
|
||||
$sql_select = ($type == 'posts') ? 'p.post_id' : 'DISTINCT t.topic_id';
|
||||
$sql_from = ($join_topic) ? TOPICS_TABLE . ' t, ' : '';
|
||||
$field = ($type == 'posts') ? 'post_id' : 'topic_id';
|
||||
$sql_author = (sizeof($author_ary) == 1) ? ' = ' . $author_ary[0] : 'IN (' . implode(', ', $author_ary) . ')';
|
||||
|
||||
if (sizeof($author_ary) && $author_name)
|
||||
{
|
||||
@@ -526,7 +525,6 @@ class fulltext_postgres extends \phpbb\search\base
|
||||
$sql_where_options .= ($sort_days) ? ' AND p.post_time >= ' . (time() - ($sort_days * 86400)) : '';
|
||||
$sql_where_options .= $sql_match_where;
|
||||
|
||||
$tmp_sql_match = array();
|
||||
$sql_match = str_replace(',', " || ' ' ||", $sql_match);
|
||||
$tmp_sql_match = "to_tsvector ('" . $this->db->sql_escape($this->config['fulltext_postgres_ts_name']) . "', " . $sql_match . ") @@ to_tsquery ('" . $this->db->sql_escape($this->config['fulltext_postgres_ts_name']) . "', '" . $this->db->sql_escape($this->tsearch_query) . "')";
|
||||
|
||||
@@ -838,7 +836,7 @@ class fulltext_postgres extends \phpbb\search\base
|
||||
GROUP BY t.topic_id, $sort_by_sql[$sort_key]";
|
||||
}
|
||||
|
||||
$result = $this->db->sql_query($sql_count);
|
||||
$this->db->sql_query($sql_count);
|
||||
$result_count = (int) $this->db->sql_fetchfield('result_count');
|
||||
|
||||
if (!$result_count)
|
||||
|
@@ -489,8 +489,6 @@ class fulltext_sphinx
|
||||
|
||||
$id_ary = array();
|
||||
|
||||
$join_topic = ($type != 'posts');
|
||||
|
||||
// Sorting
|
||||
|
||||
if ($type == 'topics')
|
||||
|
Reference in New Issue
Block a user