diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-09-23 11:49:27 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-09-23 11:49:27 +0000 |
commit | 36fa521f9230d2b2a8bbb6dc79185cfc17112f39 (patch) | |
tree | c3c81cb539043b4e7f861f344ad8da0d5749ed1a /phpBB | |
parent | 1ab3494b444136ddba445cb9eefc051c3d044ee4 (diff) | |
download | forums-36fa521f9230d2b2a8bbb6dc79185cfc17112f39.tar forums-36fa521f9230d2b2a8bbb6dc79185cfc17112f39.tar.gz forums-36fa521f9230d2b2a8bbb6dc79185cfc17112f39.tar.bz2 forums-36fa521f9230d2b2a8bbb6dc79185cfc17112f39.tar.xz forums-36fa521f9230d2b2a8bbb6dc79185cfc17112f39.zip |
#4428
git-svn-id: file:///svn/phpbb/trunk@6393 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 8 | ||||
-rwxr-xr-x | phpBB/includes/mcp/mcp_reports.php | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 3deeff6d1f..1dc2ab122e 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -182,13 +182,15 @@ class mcp_queue $forum_list[] = $row['forum_id']; } - $global_id = $forum_list[0]; - - if (!($forum_list = implode(', ', $forum_list))) + if (!sizeof($forum_list)) { trigger_error('NOT_MODERATOR'); } + $global_id = $forum_list[0]; + + $forum_list = implode(', ', $forum_list); + $sql = 'SELECT SUM(forum_topics) as sum_forum_topics FROM ' . FORUMS_TABLE . " WHERE forum_id IN (0, $forum_list)"; diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index 56d5fdedba..4ede1ab416 100755 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -201,13 +201,13 @@ class mcp_reports $forum_list[] = $row['forum_id']; } - $global_id = $forum_list[0]; - if (!sizeof($forum_list)) { trigger_error('NOT_MODERATOR'); } + $global_id = $forum_list[0]; + $sql = 'SELECT SUM(forum_topics) as sum_forum_topics FROM ' . FORUMS_TABLE . ' WHERE ' . $db->sql_in_set('forum_id', $forum_list); |