MDL-61656 report_security: fix role name

This commit is contained in:
Eloy Lafuente (stronk7) 2018-03-16 02:24:59 +01:00
parent 1287039e62
commit ed0b6f0da4

View File

@ -657,7 +657,7 @@ function report_security_check_frontpagerole($detailed=false) {
if ($riskycount or !$legacyok) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_frontpagerole_error', 'report_security', format_string($frontpage_role->name));
$result->info = get_string('check_frontpagerole_error', 'report_security', role_get_name($frontpage_role));
} else {
$result->status = REPORT_SECURITY_OK;