mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12371] Fix SQL query
PHPBB3-12371
This commit is contained in:
parent
5512e62c3c
commit
8375c3f789
1 changed files with 1 additions and 1 deletions
|
@ -1051,7 +1051,7 @@ class acp_users
|
||||||
$sql = 'SELECT COUNT(post_id) as posts_in_queue
|
$sql = 'SELECT COUNT(post_id) as posts_in_queue
|
||||||
FROM ' . POSTS_TABLE . '
|
FROM ' . POSTS_TABLE . '
|
||||||
WHERE poster_id = ' . $user_id . '
|
WHERE poster_id = ' . $user_id . '
|
||||||
AND post_visibility = ' . $db->sql_in_set('post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE));
|
AND ' . $db->sql_in_set('post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE));
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
$user_row['posts_in_queue'] = (int) $db->sql_fetchfield('posts_in_queue');
|
$user_row['posts_in_queue'] = (int) $db->sql_fetchfield('posts_in_queue');
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue