mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-43045 report: Fix missing role name in security overview report
This commit is contained in:
parent
f7434db109
commit
b92709db40
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user