aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-04-08 14:16:31 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-04-08 14:16:31 +0000
commitfc167b2e42e4bd0f13b4057978180917ec30960d (patch)
treebae7eb4ede24dc003af134068719ae9bd4184be2 /phpBB/includes/functions_display.php
parentfecdf1435848ee1694179cba7251c929f9bd9a39 (diff)
downloadforums-fc167b2e42e4bd0f13b4057978180917ec30960d.tar
forums-fc167b2e42e4bd0f13b4057978180917ec30960d.tar.gz
forums-fc167b2e42e4bd0f13b4057978180917ec30960d.tar.bz2
forums-fc167b2e42e4bd0f13b4057978180917ec30960d.tar.xz
forums-fc167b2e42e4bd0f13b4057978180917ec30960d.zip
- fix moving up/down for smilies and icons
- display number of total topics in viewforum for forums having active topics set to to true git-svn-id: file:///svn/phpbb/trunk@5770 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 9e38d39296..5f4f8ed5f6 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -127,6 +127,16 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
// Display active topics from this forum?
if ($show_active && $row['forum_type'] == FORUM_POST && $auth->acl_get('f_read', $forum_id) && ($row['forum_flags'] & 16))
{
+ if (!isset($active_forum_ary['forum_topics']))
+ {
+ $active_forum_ary['forum_topics'] = 0;
+ }
+
+ if (!isset($active_forum_ary['forum_posts']))
+ {
+ $active_forum_ary['forum_posts'] = 0;
+ }
+
$active_forum_ary['forum_id'][] = $forum_id;
$active_forum_ary['enable_icons'][] = $row['enable_icons'];
$active_forum_ary['forum_topics'] += ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];