MDL-43045 report: Fix missing role name in security overview report

This commit is contained in:
Simon Coggins 2013-11-25 16:25:51 +13:00
parent f7434db109
commit b92709db40

View File

@ -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;