mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge pull request #6601 from marc1706/ticket/17305
[ticket/17305] Change sql_sort to be more in line with previous code
This commit is contained in:
commit
d60998ba69
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
|||
if ($sort_key == 'a')
|
||||
{
|
||||
$sort_join = USERS_TABLE . ' u, ';
|
||||
$sql_sort = ' AND u.user_id = t.topic_last_poster_id ' . $sql_sort;
|
||||
$sql_sort = ' AND u.user_id = ' . ($show_results == 'posts' ? 'p.poster_id' : 't.topic_last_poster_id ') . $sql_sort;
|
||||
}
|
||||
if ($show_results == 'posts')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue