mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
we don't want all topics when searching for just a few\!
git-svn-id: file:///svn/phpbb/trunk@6289 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dced943db5
commit
559ff6c678
1 changed files with 10 additions and 6 deletions
|
@ -357,12 +357,6 @@ class fulltext_native extends search_backend
|
||||||
);
|
);
|
||||||
$sql_where[] = 'm0.post_id = p.post_id';
|
$sql_where[] = 'm0.post_id = p.post_id';
|
||||||
|
|
||||||
if ($type == 'topics')
|
|
||||||
{
|
|
||||||
$sql_array['FROM'][TOPICS_TABLE] = 't';
|
|
||||||
$group_by = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$title_match = '';
|
$title_match = '';
|
||||||
$group_by = true;
|
$group_by = true;
|
||||||
// Build some display specific sql strings
|
// Build some display specific sql strings
|
||||||
|
@ -383,6 +377,16 @@ class fulltext_native extends search_backend
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($type == 'topics')
|
||||||
|
{
|
||||||
|
if (!isset($sql_array['FROM'][TOPICS_TABLE]))
|
||||||
|
{
|
||||||
|
$sql_array['FROM'][TOPICS_TABLE] = 't';
|
||||||
|
$sql_where[] = 'p.topic_id = t.topic_id';
|
||||||
|
}
|
||||||
|
$group_by = true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Add a query optimizer (handle stuff like "+(4|3) +4")
|
* @todo Add a query optimizer (handle stuff like "+(4|3) +4")
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue