aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-06-07 17:41:42 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-06-07 17:41:42 +0000
commitcf7a17218392fc4bc2fd2ea7580b419d8fcdf1c7 (patch)
treeef01e5db267bc5189eca28c3651f70d08287006f /phpBB/memberlist.php
parentdd9c236e6a47fb93d2f39f746f2bac5efc62066d (diff)
downloadforums-cf7a17218392fc4bc2fd2ea7580b419d8fcdf1c7.tar
forums-cf7a17218392fc4bc2fd2ea7580b419d8fcdf1c7.tar.gz
forums-cf7a17218392fc4bc2fd2ea7580b419d8fcdf1c7.tar.bz2
forums-cf7a17218392fc4bc2fd2ea7580b419d8fcdf1c7.tar.xz
forums-cf7a17218392fc4bc2fd2ea7580b419d8fcdf1c7.zip
Adding a little more exlanation about flash.
Enabling FLASH per default while leaving the default permissions to disable it. There might be no mods and admins visible one a board #12185 git-svn-id: file:///svn/phpbb/trunk@7722 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 235923d426..7a6bbed253 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -127,12 +127,16 @@ switch ($mode)
// Get group memberships for the admin id ary...
$admin_memberships = group_memberships($admin_group_id, $admin_id_ary);
+
$admin_user_ids = array();
-
- // ok, we only need the user ids...
- foreach ($admin_memberships as $row)
+
+ if (!empty($admin_memberships))
{
- $admin_user_ids[$row['user_id']] = true;
+ // ok, we only need the user ids...
+ foreach ($admin_memberships as $row)
+ {
+ $admin_user_ids[$row['user_id']] = true;
+ }
}
unset($admin_memberships);
@@ -163,7 +167,7 @@ switch ($mode)
)
),
- 'WHERE' => $db->sql_in_set('u.user_id', array_unique(array_merge($admin_id_ary, $mod_id_ary))) . '
+ 'WHERE' => $db->sql_in_set('u.user_id', array_unique(array_merge($admin_id_ary, $mod_id_ary)), false, true) . '
AND u.group_id = g.group_id',
'ORDER_BY' => 'g.group_name ASC, u.username_clean ASC'