diff options
author | Chris Smith <toonarmy@phpbb.com> | 2008-10-16 19:03:02 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2008-10-16 19:03:02 +0000 |
commit | a2e454262b89dfbcd022dcc2f36a9244aa4fb80e (patch) | |
tree | 48b60d3de64298cd1db3b4c1310daf9123cc8674 /phpBB/viewtopic.php | |
parent | bc2f055ccd3be52337d64af34aa685b5859ac850 (diff) | |
download | forums-a2e454262b89dfbcd022dcc2f36a9244aa4fb80e.tar forums-a2e454262b89dfbcd022dcc2f36a9244aa4fb80e.tar.gz forums-a2e454262b89dfbcd022dcc2f36a9244aa4fb80e.tar.bz2 forums-a2e454262b89dfbcd022dcc2f36a9244aa4fb80e.tar.xz forums-a2e454262b89dfbcd022dcc2f36a9244aa4fb80e.zip |
Correctly display topic when start parameter is equal to the number of posts.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9022 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 35b0d401ba..3241c9c21a 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -446,7 +446,7 @@ if ($hilit_words) } // Make sure $start is set to the last page if it exceeds the amount -if ($start < 0 || $start > $total_posts) +if ($start < 0 || $start >= $total_posts) { $start = ($start < 0) ? 0 : floor(($total_posts - 1) / $config['posts_per_page']) * $config['posts_per_page']; } |