aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-11-13 21:48:01 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-11-13 21:48:01 +0000
commitbb20ba7235c0103dec929e62b44829572efa6825 (patch)
tree1936bf821dd861c492ef52b9fbc7460abfa323f0 /phpBB/includes
parent2fe1f1bc65f5dbd2eb1d5330faa052a965da34ee (diff)
downloadforums-bb20ba7235c0103dec929e62b44829572efa6825.tar
forums-bb20ba7235c0103dec929e62b44829572efa6825.tar.gz
forums-bb20ba7235c0103dec929e62b44829572efa6825.tar.bz2
forums-bb20ba7235c0103dec929e62b44829572efa6825.tar.xz
forums-bb20ba7235c0103dec929e62b44829572efa6825.zip
Minor change to remove total_post count
git-svn-id: file:///svn/phpbb/trunk@3027 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_display.php6
1 files changed, 0 insertions, 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)