Fix Moodle Code Checker complaints

This commit is contained in:
Mark Nelson 2021-05-27 22:13:31 +08:00
parent 0208efa585
commit 1343d64310

View file

@ -274,7 +274,7 @@ class certificate {
$extrafields = \core_user\fields::for_identity($context)->get_required_fields();
$ufields = \core_user\fields::for_userpic()->including(...$extrafields);
$ufields = $ufields->get_sql('u', false, '','', false)->selects;
$ufields = $ufields->get_sql('u', false, '', '', false)->selects;
$sql = "SELECT $ufields, ci.id as issueid, ci.code, ci.timecreated
FROM {user} u
INNER JOIN {customcert_issues} ci