diff --git a/mod/quiz/overridedelete.php b/mod/quiz/overridedelete.php index ec841aef784..3c9906854dc 100644 --- a/mod/quiz/overridedelete.php +++ b/mod/quiz/overridedelete.php @@ -83,8 +83,9 @@ if ($override->groupid) { $group = $DB->get_record('groups', array('id' => $override->groupid), 'id, name'); $confirmstr = get_string("overridedeletegroupsure", "quiz", $group->name); } else { + $namefields = get_all_user_name_fields(true); $user = $DB->get_record('user', array('id' => $override->userid), - 'id, firstname, lastname'); + 'id, ' . $namefields); $confirmstr = get_string("overridedeleteusersure", "quiz", fullname($user)); }