diff options
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 0e68906ed8..126bc60b03 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -269,7 +269,10 @@ if ($sort_days) " . (($auth->acl_get('m_approve', $forum_id)) ? '' : 'AND p.post_approved = 1'); $result = $db->sql_query($sql); - $start = 0; + if (isset($_POST['sort'])) + { + $start = 0; + } $total_posts = ($row = $db->sql_fetchrow($result)) ? $row['num_posts'] : 0; $limit_posts_time = "AND p.post_time >= $min_post_time "; } |
