aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-02-25 20:46:44 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-02-25 20:46:44 +0000
commitcfec27c968481cfb07323e6eb88071c5559b9a78 (patch)
treec45307d2dc3bc3363d4ea305013d1a32eb8d9bf5
parent597b1ebced9d8d72031b27bcd0c2c1aa42f5f56c (diff)
downloadforums-cfec27c968481cfb07323e6eb88071c5559b9a78.tar
forums-cfec27c968481cfb07323e6eb88071c5559b9a78.tar.gz
forums-cfec27c968481cfb07323e6eb88071c5559b9a78.tar.bz2
forums-cfec27c968481cfb07323e6eb88071c5559b9a78.tar.xz
forums-cfec27c968481cfb07323e6eb88071c5559b9a78.zip
checkin for providing cvs commandline list.
git-svn-id: file:///svn/phpbb/trunk@5587 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/mcp/mcp_front.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php
index 7e8a0351ad..64982141a4 100644
--- a/phpBB/includes/mcp/mcp_front.php
+++ b/phpBB/includes/mcp/mcp_front.php
@@ -26,6 +26,7 @@ function mcp_front_view($id, $mode, $action)
$forum_id = request_var('f', 0);
$template->assign_var('S_SHOW_UNAPPROVED', (!empty($forum_list)) ? true : false);
+
if (!empty($forum_list))
{
$sql = 'SELECT COUNT(post_id) AS total
@@ -33,8 +34,8 @@ function mcp_front_view($id, $mode, $action)
WHERE forum_id IN (0, ' . implode(', ', $forum_list) . ')
AND post_approved = 0';
$result = $db->sql_query($sql);
- $row = $db->sql_fetchrow($result);
- $total = $row['total'];
+ $total = (int) $db->sql_fetchfield('total', 0, $result);
+ $db->sql_freeresult($result);
if ($total)
{