Skip to content

Commit

Permalink
MDL-60579 user: Add missing case breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Nov 9, 2017
1 parent a997dc9 commit 762f8dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions user/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,14 @@ private function handle_missing_applied_filters($filtersapplied, $filteroptions)
$val = get_string('numyear', 'moodle', 1);
$filteroptions += $this->format_filter_option(USER_FILTER_LAST_ACCESS, $criteria, $timestamp, $val);
}
break;
case USER_FILTER_ROLE:
$criteria = get_string('role');
if ($role = $DB->get_record('role', array('id' => $value))) {
$role = role_get_name($role);
$filteroptions += $this->format_filter_option(USER_FILTER_ROLE, $criteria, $value, $role);
}
break;
}
}
}
Expand Down

0 comments on commit 762f8dc

Please sign in to comment.