aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_native.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-05 17:46:29 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-05 17:46:29 +0200
commit3088855aa6c9bed9a15f3bd4ab1113d37be916a5 (patch)
tree2ea1ed5c909922774755576317cfca0aee08017f /phpBB/includes/search/fulltext_native.php
parentc22d5bd37c26fb5e007519a0ea93001ecd060a1c (diff)
downloadforums-3088855aa6c9bed9a15f3bd4ab1113d37be916a5.tar
forums-3088855aa6c9bed9a15f3bd4ab1113d37be916a5.tar.gz
forums-3088855aa6c9bed9a15f3bd4ab1113d37be916a5.tar.bz2
forums-3088855aa6c9bed9a15f3bd4ab1113d37be916a5.tar.xz
forums-3088855aa6c9bed9a15f3bd4ab1113d37be916a5.zip
[feature/soft-delete] Fix SQL error in search
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/search/fulltext_native.php')
-rw-r--r--phpBB/includes/search/fulltext_native.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php
index 56332e872b..0e520b63a2 100644
--- a/phpBB/includes/search/fulltext_native.php
+++ b/phpBB/includes/search/fulltext_native.php
@@ -857,6 +857,7 @@ class phpbb_search_fulltext_native extends phpbb_search_base
$sql_time = ($sort_days) ? ' AND p.post_time >= ' . (time() - ($sort_days * 86400)) : '';
$sql_topic_id = ($topic_id) ? ' AND p.topic_id = ' . (int) $topic_id : '';
$sql_firstpost = ($firstpost_only) ? ' AND p.post_id = t.topic_first_post_id' : '';
+ $post_visibility = ($post_visibility) ? ' AND ' . $post_visibility : '';
// Build sql strings for sorting
$sql_sort = $sort_by_sql[$sort_key] . (($sort_dir == 'a') ? ' ASC' : ' DESC');