MDL-42342 blocks: Fix alternate name warning in quiz results block
This commit is contained in:
@@ -378,7 +378,9 @@ class block_quiz_results extends block_base {
|
||||
|
||||
// Now grab all the users from the database
|
||||
$userids = array_merge(array_keys($best), array_keys($worst));
|
||||
$users = $DB->get_records_list('user', 'id', $userids, '', 'id, firstname, lastname, idnumber');
|
||||
$fields = array_merge(array('id', 'idnumber'), get_all_user_name_fields());
|
||||
$fields = implode(',', $fields);
|
||||
$users = $DB->get_records_list('user', 'id', $userids, '', $fields);
|
||||
|
||||
// Ready for output!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user