aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-10-20 12:08:35 -0400
committerNils Adermann <naderman@naderman.de>2014-10-20 12:08:35 -0400
commit566c8a1bbc44e410c73b06008346766c01fbecef (patch)
tree83e853c1861f4003e07ed9eb31e82dd6ff0b67d5
parent39e51e559980d239a08a59e789a1165cc2bbcfff (diff)
downloadforums-566c8a1bbc44e410c73b06008346766c01fbecef.tar
forums-566c8a1bbc44e410c73b06008346766c01fbecef.tar.gz
forums-566c8a1bbc44e410c73b06008346766c01fbecef.tar.bz2
forums-566c8a1bbc44e410c73b06008346766c01fbecef.tar.xz
forums-566c8a1bbc44e410c73b06008346766c01fbecef.zip
[ticket/13188] Add missing where clause to post_id query in sphinx index
PHPBB3-13188
-rw-r--r--phpBB/phpbb/search/fulltext_sphinx.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/phpbb/search/fulltext_sphinx.php b/phpBB/phpbb/search/fulltext_sphinx.php
index 79d68d2ae1..fdd6657844 100644
--- a/phpBB/phpbb/search/fulltext_sphinx.php
+++ b/phpBB/phpbb/search/fulltext_sphinx.php
@@ -715,6 +715,7 @@ class fulltext_sphinx
),
'ON' => 'p1.topic_id = p2.topic_id',
)),
+ 'WHERE' => 'p2.post_id = '.((int) $post_id),
);
$sql = $this->db->sql_build_query('SELECT', $sql_array);