Skip to content

Commit

Permalink
Merge branch 'MDL-52649-master' of git://github.com/junpataleta/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 13, 2016
2 parents 1be8237 + 9488b6f commit 64858d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@
$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));
}
Expand Down

0 comments on commit 64858d4

Please sign in to comment.