diff --git a/report/security/locallib.php b/report/security/locallib.php index c49f15e5f2a..365c404a60f 100644 --- a/report/security/locallib.php +++ b/report/security/locallib.php @@ -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;