From e19e832e1c7ef92df66a9a3c0f6d2048e44e7ea5 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 29 May 2001 11:08:40 +0000 Subject: Slight mod to jump to last post calc git-svn-id: file:///svn/phpbb/trunk@367 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/index.php b/phpBB/index.php index 27108595b1..a37de9d820 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -186,7 +186,7 @@ if($total_categories) { $last_post_time = create_date($board_config['default_dateformat'], $forum_rows[$j]['post_time'], $board_config['default_timezone']); - $topic_last_post_start = (int)(($forum_rows[$j]['topic_replies']+1) / $board_config['posts_per_page']) * $board_config['posts_per_page']; + $topic_last_post_start = floor(($forum_rows[$j]['topic_replies']) / $board_config['posts_per_page']) * $board_config['posts_per_page']; $last_post_get = ($topic_last_post_start) ? "&start=".$topic_last_post_start : ""; $last_post_get .= "#".$forum_rows[$j]['topic_last_post_id']; -- cgit v1.2.1