From 51d9bdeca72e22dfa2f7cecc3e7867b125ee899b Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 2 Apr 2002 14:04:18 +0000 Subject: Various updates with any luck they fix a few minor issues without causing new ones ... git-svn-id: file:///svn/phpbb/trunk@2462 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/viewforum.php') diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 96e1619d03..632a7d6682 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -255,7 +255,7 @@ if ( !empty($HTTP_POST_VARS['topicdays']) || !empty($HTTP_GET_VARS['topicdays']) } $row = $db->sql_fetchrow($result); - $topics_count = $row['forum_topics']; + $topics_count = ( $forum_row['forum_topics'] ) ? $forum_row['forum_topics'] : 1; $limit_topics_time = "AND p.post_time >= $min_topic_time"; if ( !empty($HTTP_POST_VARS['topicdays']) ) @@ -265,7 +265,7 @@ if ( !empty($HTTP_POST_VARS['topicdays']) || !empty($HTTP_GET_VARS['topicdays']) } else { - $topics_count = $forum_row['forum_topics']; + $topics_count = ( $forum_row['forum_topics'] ) ? $forum_row['forum_topics'] : 1; $limit_topics_time = ''; $topic_days = 0; -- cgit v1.2.1