mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Bug #54325 - Fulltext-MySQL search for keywords and username at the same time. (Regression from r9931)
Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10292 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5a8fb00ff9
commit
313648f07b
2 changed files with 2 additions and 1 deletions
|
@ -97,6 +97,7 @@
|
||||||
<li>[Fix] Correctly exclude subforums from ATOM Feeds. (Bug #54285)</li>
|
<li>[Fix] Correctly exclude subforums from ATOM Feeds. (Bug #54285)</li>
|
||||||
<li>[Fix] Do not link to user profile in ATOM feed entry if post has been made by the guest user. (Bug #54275)</li>
|
<li>[Fix] Do not link to user profile in ATOM feed entry if post has been made by the guest user. (Bug #54275)</li>
|
||||||
<li>[Fix] Make word censoring case insensitive. (Bug #54265)</li>
|
<li>[Fix] Make word censoring case insensitive. (Bug #54265)</li>
|
||||||
|
<li>[Fix] Fulltext-MySQL search for keywords and username at the same time. (Bug #54325)</li>
|
||||||
<li>[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</li>
|
<li>[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</li>
|
||||||
<li>[Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)</li>
|
<li>[Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -444,7 +444,7 @@ class fulltext_mysql extends search_backend
|
||||||
if (sizeof($author_ary) && $author_name)
|
if (sizeof($author_ary) && $author_name)
|
||||||
{
|
{
|
||||||
// first one matches post of registered users, second one guests and deleted users
|
// first one matches post of registered users, second one guests and deleted users
|
||||||
$sql_author = '(' . $db->sql_in_set('p.poster_id', array_diff($author_ary, array(ANONYMOUS)), false, true) . ' OR p.post_username ' . $author_name . ')';
|
$sql_author = ' AND (' . $db->sql_in_set('p.poster_id', array_diff($author_ary, array(ANONYMOUS)), false, true) . ' OR p.post_username ' . $author_name . ')';
|
||||||
}
|
}
|
||||||
else if (sizeof($author_ary))
|
else if (sizeof($author_ary))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue