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/includes/mcp/mcp_queue.php | |
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/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 8 |
1 files changed, 5 insertions, 3 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)"; |