diff --git a/student_attendance_form.php b/student_attendance_form.php index 2662470..80d8ec2 100644 --- a/student_attendance_form.php +++ b/student_attendance_form.php @@ -97,7 +97,7 @@ class mod_attendance_student_attendance_form extends moodleform { $radioarray[] =& $mform->createElement('static', '', '', $warning); } // Add the radio buttons as a control with the user's name in front. - $radiogroup = $mform->addGroup($radioarray, 'statusarray', $USER->firstname.' '.$USER->lastname.':', array(''), false); + $radiogroup = $mform->addGroup($radioarray, 'statusarray', fullname($USER).':', array(''), false); $radiogroup->setAttributes(array('class' => 'statusgroup')); $mform->addRule('statusarray', get_string('attendancenotset', 'attendance'), 'required', '', 'client', false, false); }