mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Minor update, big speed increase ... Bart's idea :)
git-svn-id: file:///svn/phpbb/trunk@1716 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0ef1407219
commit
52294e6d5a
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ $sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as i
|
|||
AND p.poster_id = u2.user_id
|
||||
AND t.topic_type <> " . POST_ANNOUNCE . "
|
||||
$limit_topics_time
|
||||
ORDER BY t.topic_type DESC, p.post_time DESC
|
||||
ORDER BY t.topic_type DESC, t.topic_last_post_id DESC
|
||||
LIMIT $start, ".$board_config['topics_per_page'];
|
||||
if( !$t_result = $db->sql_query($sql) )
|
||||
{
|
||||
|
@ -289,7 +289,7 @@ $sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as i
|
|||
AND p.post_id = t.topic_last_post_id
|
||||
AND p.poster_id = u2.user_id
|
||||
AND t.topic_type = " . POST_ANNOUNCE . "
|
||||
ORDER BY p.post_time DESC";
|
||||
ORDER BY t.topic_last_post_id DESC ";
|
||||
if( !$ta_result = $db->sql_query($sql) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Couldn't obtain topic information", "", __LINE__, __FILE__, $sql);
|
||||
|
|
Loading…
Add table
Reference in a new issue