Index: index.php =================================================================== RCS file: /cvsroot/moodle/moodle/user/index.php,v retrieving revision 1.194 diff -u -r1.194 index.php --- index.php 10 Oct 2007 12:19:41 -0000 1.194 +++ index.php 16 Nov 2007 09:11:45 -0000 @@ -442,7 +442,11 @@ error('That role does not exist'); } $a->number = $totalcount; - $a->role = $currentrole->name; + if (isset($rolenames[$currentrole->id])){ + $a->role = $rolenames[$currentrole->id]; + }else{ + $a->role = $currentrole->name;//safety net + } $heading = format_string(get_string('xuserswiththerole', 'role', $a)); if (user_can_assign($context, $roleid)) { $heading .= ' ';