mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-61656 report_security: fix role name
This commit is contained in:
parent
1287039e62
commit
ed0b6f0da4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user