diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-09 14:23:25 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-09 14:23:25 -0500 |
commit | 36da105a3316f588125dec46afaedcbc6a6b4d33 (patch) | |
tree | e5aa762cdc3b3841502061af6c5ca6150da05a6a | |
parent | d99a0fe6b1dd984dfbba3bafd0e7a0d78234ddc5 (diff) | |
parent | 01eebd6511ec5a381422a707387355aab6d87fa8 (diff) | |
download | forums-36da105a3316f588125dec46afaedcbc6a6b4d33.tar forums-36da105a3316f588125dec46afaedcbc6a6b4d33.tar.gz forums-36da105a3316f588125dec46afaedcbc6a6b4d33.tar.bz2 forums-36da105a3316f588125dec46afaedcbc6a6b4d33.tar.xz forums-36da105a3316f588125dec46afaedcbc6a6b4d33.zip |
Merge PR #1043 branch 'dhruvgoel92/ticket/11177' into develop
* dhruvgoel92/ticket/11177:
[ticket/11177] return no results when query has only negation
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 12a1203249..34a27f294c 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -343,6 +343,12 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base return false; } + // When search query contains queries like -foo + if (strpos($this->search_query, '+') === false) + { + return false; + } + // generate a search_key from all the options to identify the results $search_key = md5(implode('#', array( implode(', ', $this->split_words), |