mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
checkin for providing cvs commandline list.
git-svn-id: file:///svn/phpbb/trunk@5587 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user