aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/search/fulltext_postgres.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-15 21:34:02 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-16 22:35:41 +0200
commit09fc008e62453352cb34f4391acda310ea8b41c7 (patch)
treed1de46df2b21f947a3debafe919eca9151e3ecf6 /phpBB/phpbb/search/fulltext_postgres.php
parent06bf864c41eeb8e0232f124f5a0539cb4f788439 (diff)
downloadforums-09fc008e62453352cb34f4391acda310ea8b41c7.tar
forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar.gz
forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar.bz2
forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar.xz
forums-09fc008e62453352cb34f4391acda310ea8b41c7.zip
[ticket/12721] Add Squiz.ControlStructures.ElseIfDeclaration in legacy
PHPBB3-12721
Diffstat (limited to 'phpBB/phpbb/search/fulltext_postgres.php')
-rw-r--r--phpBB/phpbb/search/fulltext_postgres.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/search/fulltext_postgres.php b/phpBB/phpbb/search/fulltext_postgres.php
index 49d528c8ba..bdb5a86009 100644
--- a/phpBB/phpbb/search/fulltext_postgres.php
+++ b/phpBB/phpbb/search/fulltext_postgres.php
@@ -263,12 +263,12 @@ class fulltext_postgres extends \phpbb\search\base
$this->search_query .= $word . ' ';
$this->tsearch_query .= '&' . substr($word, 1) . ' ';
}
- elseif (strpos($word, '-') === 0)
+ else if (strpos($word, '-') === 0)
{
$this->search_query .= $word . ' ';
$this->tsearch_query .= '&!' . substr($word, 1) . ' ';
}
- elseif (strpos($word, '|') === 0)
+ else if (strpos($word, '|') === 0)
{
$this->search_query .= $word . ' ';
$this->tsearch_query .= '|' . substr($word, 1) . ' ';