- Patch #755870 by David_Rothstein: fixed PHP notice for undefined variable in user_roles().
parent
b4b31c1039
commit
fe26a90789
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue