diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-02 14:04:18 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-02 14:04:18 +0000 |
| commit | 51d9bdeca72e22dfa2f7cecc3e7867b125ee899b (patch) | |
| tree | 679053f4374226e2bdfb02af19f942b842040354 /phpBB/viewforum.php | |
| parent | 374f7adca2dd41e3a20739c74514fbca87a01e55 (diff) | |
| download | forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar.gz forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar.bz2 forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.tar.xz forums-51d9bdeca72e22dfa2f7cecc3e7867b125ee899b.zip | |
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
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
