aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-11 14:40:03 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-25 11:52:23 +0200
commit8375c3f78909f8926ca48bb9649aa3e1f95bd117 (patch)
treec3e17e4dc7b513dc6245e5ee53d53faea5d9ce23 /phpBB/includes/acp/acp_users.php
parent5512e62c3c436215de6db0b45c693308e1b6dfed (diff)
downloadforums-8375c3f78909f8926ca48bb9649aa3e1f95bd117.tar
forums-8375c3f78909f8926ca48bb9649aa3e1f95bd117.tar.gz
forums-8375c3f78909f8926ca48bb9649aa3e1f95bd117.tar.bz2
forums-8375c3f78909f8926ca48bb9649aa3e1f95bd117.tar.xz
forums-8375c3f78909f8926ca48bb9649aa3e1f95bd117.zip
[ticket/12371] Fix SQL query
PHPBB3-12371
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 3cd5e990cf..a139dad052 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -1051,7 +1051,7 @@ class acp_users
$sql = 'SELECT COUNT(post_id) as posts_in_queue
FROM ' . POSTS_TABLE . '
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);
$user_row['posts_in_queue'] = (int) $db->sql_fetchfield('posts_in_queue');
$db->sql_freeresult($result);