diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-04 13:49:52 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-04 13:49:52 +0000 |
commit | 92b02006fee63fd41c65cee0c7f79f7f62517f75 (patch) | |
tree | b228e935e4415dfcd75f96bb2133b371495eebbb /phpBB/includes | |
parent | f39202b42c8ab682cce675bdbd5871de5c41dcaa (diff) | |
download | forums-92b02006fee63fd41c65cee0c7f79f7f62517f75.tar forums-92b02006fee63fd41c65cee0c7f79f7f62517f75.tar.gz forums-92b02006fee63fd41c65cee0c7f79f7f62517f75.tar.bz2 forums-92b02006fee63fd41c65cee0c7f79f7f62517f75.tar.xz forums-92b02006fee63fd41c65cee0c7f79f7f62517f75.zip |
small fix - we do not rely on the parent_id (it could be different for every single mode)
git-svn-id: file:///svn/phpbb/trunk@8004 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_users.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 2a059121e0..3747282f1e 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -116,10 +116,11 @@ class acp_users // Build modes dropdown list $sql = 'SELECT module_mode, module_auth - FROM ' . MODULES_TABLE . ' - WHERE parent_id = ' . $this->p_master->p_parent . " - AND module_basename = 'users' + FROM ' . MODULES_TABLE . " + WHERE module_basename = 'users' AND module_enabled = 1 + AND module_class = 'acp' + GROUP BY module_mode ORDER BY left_id"; $result = $db->sql_query($sql); |