Commit fe26a907 authored by Dries's avatar Dries

- Patch #755870 by David_Rothstein: fixed PHP notice for undefined variable in user_roles().

parent b4b31c10
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment