aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_mysql.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-06-04 17:28:43 +0000
committerNils Adermann <naderman@naderman.de>2008-06-04 17:28:43 +0000
commit443ec9dcb06755eb4ee758bb34e2e7ea72c051ae (patch)
tree612dff83a8e90a4b371682fc779f3f802aa3fb78 /phpBB/includes/search/fulltext_mysql.php
parente08a400b9f504373541725b93aed6f0270a8caa6 (diff)
downloadforums-443ec9dcb06755eb4ee758bb34e2e7ea72c051ae.tar
forums-443ec9dcb06755eb4ee758bb34e2e7ea72c051ae.tar.gz
forums-443ec9dcb06755eb4ee758bb34e2e7ea72c051ae.tar.bz2
forums-443ec9dcb06755eb4ee758bb34e2e7ea72c051ae.tar.xz
forums-443ec9dcb06755eb4ee758bb34e2e7ea72c051ae.zip
merging r8604 into trunk
git-svn-id: file:///svn/phpbb/trunk@8606 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 17cc6782c5..826ec9d4a1 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -465,8 +465,8 @@ class fulltext_mysql extends search_backend
break;
case 't':
- $sql_sort_table = ($type == 'posts') ? TOPICS_TABLE . ' t, ' : '';
- $sql_sort_join = ($type == 'posts') ? ' AND t.topic_id = p.topic_id ' : '';
+ $sql_sort_table = ($type == 'posts' && !$firstpost_only) ? TOPICS_TABLE . ' t, ' : '';
+ $sql_sort_join = ($type == 'posts' && !$firstpost_only) ? ' AND t.topic_id = p.topic_id ' : '';
break;
case 'f':