1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-26 04:55:12 +02:00

[ticket/13664] Added alias to table to make modding easier.

PHPBB3-13664
This commit is contained in:
brunoais
2015-03-01 20:57:06 +00:00
parent 5fa6871ebf
commit 21cc1fda85

View File

@ -44,10 +44,10 @@ function mcp_front_view($id, $mode, $action)
$sql_ary = array(
'SELECT' => 'COUNT(post_id) AS total',
'FROM' => array(
POSTS_TABLE => '',
POSTS_TABLE => 'p',
),
'WHERE' => $db->sql_in_set('forum_id', $forum_list) . '
AND ' . $db->sql_in_set('post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE))
'WHERE' => $db->sql_in_set('p.forum_id', $forum_list) . '
AND ' . $db->sql_in_set('p.post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE))
);
/**