Skip to content

Commit

Permalink
MDL-61656 report_security: fix role name
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 16, 2018
1 parent f4e99c5 commit ec33505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/security/locallib.php
Expand Up @@ -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;
Expand Down

0 comments on commit ec33505

Please sign in to comment.