From b92709db4033c91d8a3784fbcfe66c6a9bb08695 Mon Sep 17 00:00:00 2001 From: Simon Coggins Date: Mon, 25 Nov 2013 16:25:51 +1300 Subject: [PATCH] MDL-43045 report: Fix missing role name in security overview report --- 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 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;