summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index bbe3a0de8..0abc480b0 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2512,6 +2512,7 @@ function user_roles($membersonly = FALSE, $permission = NULL) {
$result = db_query('SELECT rid, name FROM {role} ORDER BY weight, name');
}
+ $roles = array();
foreach ($result as $role) {
switch ($role->rid) {
// We only translate the built in role names