Minor update for page count display

git-svn-id: file:///svn/phpbb/trunk@2476 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-04-04 11:41:32 +00:00
parent 324bfbcfae
commit 232a6596cb

View file

@ -144,7 +144,7 @@ if ( !empty($topic_id) )
} }
$topic_row = $db->sql_fetchrow($result); $topic_row = $db->sql_fetchrow($result);
$forum_topics = $topic_row['forum_topics']; $forum_topics = ( $topic_row['forum_topics'] == 0 ) ? 1 : $topic_row['forum_topics'];
$forum_id = $topic_row['forum_id']; $forum_id = $topic_row['forum_id'];
$forum_name = $topic_row['forum_name']; $forum_name = $topic_row['forum_name'];
} }
@ -159,7 +159,7 @@ else if ( !empty($forum_id) )
} }
$topic_row = $db->sql_fetchrow($result); $topic_row = $db->sql_fetchrow($result);
$forum_topics = $topic_row['forum_topics']; $forum_topics = ( $topic_row['forum_topics'] == 0 ) ? 1 : $topic_row['forum_topics'];
$forum_name = $topic_row['forum_name']; $forum_name = $topic_row['forum_name'];
} }
else else