mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
git-svn-id: file:///svn/phpbb/trunk@6393 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1ab3494b44
commit
36fa521f92
2 changed files with 7 additions and 5 deletions
|
@ -182,13 +182,15 @@ class mcp_queue
|
||||||
$forum_list[] = $row['forum_id'];
|
$forum_list[] = $row['forum_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$global_id = $forum_list[0];
|
if (!sizeof($forum_list))
|
||||||
|
|
||||||
if (!($forum_list = implode(', ', $forum_list)))
|
|
||||||
{
|
{
|
||||||
trigger_error('NOT_MODERATOR');
|
trigger_error('NOT_MODERATOR');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$global_id = $forum_list[0];
|
||||||
|
|
||||||
|
$forum_list = implode(', ', $forum_list);
|
||||||
|
|
||||||
$sql = 'SELECT SUM(forum_topics) as sum_forum_topics
|
$sql = 'SELECT SUM(forum_topics) as sum_forum_topics
|
||||||
FROM ' . FORUMS_TABLE . "
|
FROM ' . FORUMS_TABLE . "
|
||||||
WHERE forum_id IN (0, $forum_list)";
|
WHERE forum_id IN (0, $forum_list)";
|
||||||
|
|
|
@ -201,13 +201,13 @@ class mcp_reports
|
||||||
$forum_list[] = $row['forum_id'];
|
$forum_list[] = $row['forum_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$global_id = $forum_list[0];
|
|
||||||
|
|
||||||
if (!sizeof($forum_list))
|
if (!sizeof($forum_list))
|
||||||
{
|
{
|
||||||
trigger_error('NOT_MODERATOR');
|
trigger_error('NOT_MODERATOR');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$global_id = $forum_list[0];
|
||||||
|
|
||||||
$sql = 'SELECT SUM(forum_topics) as sum_forum_topics
|
$sql = 'SELECT SUM(forum_topics) as sum_forum_topics
|
||||||
FROM ' . FORUMS_TABLE . '
|
FROM ' . FORUMS_TABLE . '
|
||||||
WHERE ' . $db->sql_in_set('forum_id', $forum_list);
|
WHERE ' . $db->sql_in_set('forum_id', $forum_list);
|
||||||
|
|
Loading…
Add table
Reference in a new issue