git-svn-id: file:///svn/phpbb/trunk@7779 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2007-06-19 11:45:29 +00:00
parent f81bb91eca
commit 1447e8714d
2 changed files with 8 additions and 7 deletions

View file

@ -287,7 +287,8 @@ p a {
<li>[Fix] Added post anchor to links in default warning message (Bug #12489)</li> <li>[Fix] Added post anchor to links in default warning message (Bug #12489)</li>
<li>[Fix] Allow 5 digits in editing time fields (Bug #12489)</li> <li>[Fix] Allow 5 digits in editing time fields (Bug #12489)</li>
<li>[Fix] MS SQL DBAL drivers now write over extension limitations, they are too low for most installations (Bug #12415)</li> <li>[Fix] MS SQL DBAL drivers now write over extension limitations, they are too low for most installations (Bug #12415)</li>
</ul> <li>[Fix] Fix sorting by author on "unanswered posts" (Bug #12545)</li>
ul>
</div> </div>
<a href="#top">Top</a> <a href="#top">Top</a>

View file

@ -299,14 +299,14 @@ if ($keywords || $author || $author_id || $search_id || $submit)
$last_post_time = ''; $last_post_time = '';
} }
if ($show_results == 'posts')
{
if ($sort_key == 'a') if ($sort_key == 'a')
{ {
$sort_join = USERS_TABLE . ' u, '; $sort_join = USERS_TABLE . ' u, ';
$sql_sort = ' AND u.user_id = p.poster_id ' . $sql_sort; $sql_sort = ' AND u.user_id = p.poster_id ' . $sql_sort;
} }
if ($show_results == 'posts')
{
$sql = "SELECT p.post_id $sql = "SELECT p.post_id
FROM $sort_join" . POSTS_TABLE . ' p, ' . TOPICS_TABLE . " t FROM $sort_join" . POSTS_TABLE . ' p, ' . TOPICS_TABLE . " t
WHERE t.topic_replies = 0 WHERE t.topic_replies = 0