Commit 64858d43 authored by Andrew Nicols's avatar Andrew Nicols
Browse files

Merge branch 'MDL-52649-master' of git://github.com/junpataleta/moodle

parents 1be8237d 9488b6f3
......@@ -517,12 +517,12 @@ if ($roleid > 0) {
$a->role = $rolenames[$roleid];
$heading = format_string(get_string('xuserswiththerole', 'role', $a));
if ($currentgroup and $group) {
if ($currentgroup and !empty($group)) {
$a->group = $group->name;
$heading .= ' ' . format_string(get_string('ingroup', 'role', $a));
}
if ($accesssince) {
if ($accesssince && !empty($timeoptions[$accesssince])) {
$a->timeperiod = $timeoptions[$accesssince];
$heading .= ' ' . format_string(get_string('inactiveformorethan', 'role', $a));
}
......
Supports Markdown
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