From ed0b6f0da4d54e968fed55e5c4658838ae9c5cc4 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Fri, 16 Mar 2018 02:24:59 +0100 Subject: [PATCH] MDL-61656 report_security: fix role name --- report/security/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/security/locallib.php b/report/security/locallib.php index 65fba97e4de..acbd1483133 100644 --- a/report/security/locallib.php +++ b/report/security/locallib.php @@ -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;