From 30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 11 May 2003 00:58:14 +0000 Subject: Yet more mildly fudged code ... just to get something up, minor fixes/updates elsewhere git-svn-id: file:///svn/phpbb/trunk@4004 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'phpBB/viewforum.php') diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index ff5eb34021..cf60bb8d4b 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -342,7 +342,11 @@ if ($forum_data['forum_type'] == FORUM_POST) foreach ($row_ary as $row) { $topic_id = $row['topic_id']; - $replies = ($auth->acl_get('m_approve', $forum_id)) ? $row['topic_replies_real'] : $row['topic_replies']; + + + // How many replies? hhmmm 1? 2? let's find out + $replies = ($auth->acl_get('m_approve')) ? $row['topic_replies_real'] : $row['topic_replies']; + // Type and folder $topic_type = ''; @@ -426,8 +430,6 @@ if ($forum_data['forum_type'] == FORUM_POST) // Goto message generation - $replies = ($auth->acl_get('m_approve')) ? $row['topic_replies_real'] : $row['topic_replies']; - if (($replies + 1) > intval($config['posts_per_page'])) { $total_pages = ceil(($replies + 1) / intval($config['posts_per_page'])); -- cgit v1.2.1