From bb20ba7235c0103dec929e62b44829572efa6825 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 13 Nov 2002 21:48:01 +0000 Subject: [PATCH] Minor change to remove total_post count git-svn-id: file:///svn/phpbb/trunk@3027 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 1a2a3d3617..e247aebe8e 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -22,23 +22,17 @@ function display_forums($root_data=array(), $display_moderators=TRUE) { global $db, $template, $auth, $user, $phpEx, $SID; - global $total_posts; $where_sql = ($root_data['forum_id']) ? ' WHERE left_id > ' . $root_data['left_id'] . ' AND left_id < ' . $root_data['right_id'] : ''; $sql = 'SELECT * FROM ' . FORUMS_TABLE . $where_sql . ' ORDER BY left_id'; $result = $db->sql_query($sql); - $total_posts = 0; $branch_root_id = $root_data['forum_id']; $forum_rows = $subforums = $forum_ids = $forum_moderators = array(); while ($row = $db->sql_fetchrow($result)) { - if ($row['post_count_inc']) - { - $total_posts += $row['forum_posts']; - } if (isset($right_id)) { if ($row['left_id'] < $right_id)