Skip to content

Commit

Permalink
MDL-43045 report: Fix missing role name in security overview report
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoggins committed Nov 25, 2013
1 parent f7434db commit b92709d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/security/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ function report_security_check_defaultuserrole($detailed=false) {

if ($riskycount or !$legacyok) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_defaultuserrole_error', 'report_security', format_string($default_role->name));
$result->info = get_string('check_defaultuserrole_error', 'report_security', role_get_name($default_role));

} else {
$result->status = REPORT_SECURITY_OK;
Expand Down

0 comments on commit b92709d

Please sign in to comment.