Skip to content

Commit

Permalink
Merge pull request #6601 from marc1706/ticket/17305
Browse files Browse the repository at this point in the history
[ticket/17305] Change sql_sort to be more in line with previous code
  • Loading branch information
marc1706 committed Apr 22, 2024
2 parents 663100a + 1c81282 commit d60998b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
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')
{
Expand Down

0 comments on commit d60998b

Please sign in to comment.