aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-04-04 11:41:32 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-04-04 11:41:32 +0000
commit232a6596cb185a311477a1d66bf7beeb56ba7376 (patch)
tree863b17da84d09498dbacb7b84e4864a7a3a461c0 /phpBB
parent324bfbcfaef06476757e4dcb48595969ef2afb4f (diff)
downloadforums-232a6596cb185a311477a1d66bf7beeb56ba7376.tar
forums-232a6596cb185a311477a1d66bf7beeb56ba7376.tar.gz
forums-232a6596cb185a311477a1d66bf7beeb56ba7376.tar.bz2
forums-232a6596cb185a311477a1d66bf7beeb56ba7376.tar.xz
forums-232a6596cb185a311477a1d66bf7beeb56ba7376.zip
Minor update for page count display
git-svn-id: file:///svn/phpbb/trunk@2476 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/modcp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/modcp.php b/phpBB/modcp.php
index 3b15b57a3f..1293de3a7a 100644
--- a/phpBB/modcp.php
+++ b/phpBB/modcp.php
@@ -144,7 +144,7 @@ if ( !empty($topic_id) )
}
$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_name = $topic_row['forum_name'];
}
@@ -159,7 +159,7 @@ else if ( !empty($forum_id) )
}
$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'];
}
else