aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorDark❶ <dark-1@users.noreply.github.com>2018-10-29 00:28:43 +0530
committerDark❶ <dark-1@users.noreply.github.com>2018-10-29 00:28:43 +0530
commit9e375f32eb4d2eea65ba6fc929c82c65c6ab2d61 (patch)
treee361194d741707c252e76a055038add3e734d983 /phpBB/memberlist.php
parented64a69760c40fcb4a4b50f82773575f6d997ff5 (diff)
downloadforums-9e375f32eb4d2eea65ba6fc929c82c65c6ab2d61.tar
forums-9e375f32eb4d2eea65ba6fc929c82c65c6ab2d61.tar.gz
forums-9e375f32eb4d2eea65ba6fc929c82c65c6ab2d61.tar.bz2
forums-9e375f32eb4d2eea65ba6fc929c82c65c6ab2d61.tar.xz
forums-9e375f32eb4d2eea65ba6fc929c82c65c6ab2d61.zip
[ticket/15858] Unapproved User(s) appearing as Guest in Team Page
PHPBB3-15858
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 977857da59..d0dd70af01 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -173,7 +173,7 @@ switch ($mode)
'LEFT_JOIN' => array(
array(
'FROM' => array(USERS_TABLE => 'u'),
- 'ON' => 'ug.user_id = u.user_id AND ug.user_pending = 0',
+ 'ON' => 'ug.user_id = u.user_id',
),
array(
'FROM' => array(GROUPS_TABLE => 'g'),
@@ -181,7 +181,7 @@ switch ($mode)
),
),
- 'WHERE' => $db->sql_in_set('g.group_id', $group_ids, false, true),
+ 'WHERE' => $db->sql_in_set('g.group_id', $group_ids, false, true) . ' AND ug.user_pending = 0',
'ORDER_BY' => 'u.username_clean ASC',
);