sphinx search fix git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@553 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
dimka3210@gmail.com 2013-11-03 10:41:47 +00:00
commit 3c9f6894df
2 changed files with 4 additions and 4 deletions

View file

@ -55,8 +55,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 (unstable)';
$bb_cfg['tp_release_date'] = '05-09-2013';
$bb_cfg['tp_release_state'] = 'R552';
$bb_cfg['tp_release_date'] = '03-11-2013';
$bb_cfg['tp_release_state'] = 'R553';
// Database
$charset = 'utf8';

View file

@ -697,9 +697,9 @@ else
bb_die($lang['NO_SEARCH_MATCH']);
}
$where_id = ($title_match) ? 'topic_id' : 'post_id';
$where_id = ($title_match) ? 't.topic_id' : 'p.post_id';
$SQL['WHERE'][] = "$tbl.$where_id IN($search_match_topics_csv)";
$SQL['WHERE'][] = "$where_id IN($search_match_topics_csv)";
prevent_huge_searches($SQL);
}