@ -689,7 +689,7 @@ class mod_attendance_structure {
* @return array
*/
public function get_users($groupid = 0, $page = 1) {
global $DB, $CFG;
global $DB;
$fields = array('username' , 'idnumber' , 'institution' , 'department');
// Get user identity fields if required - doesn't return original $fields array.
@ -479,7 +479,6 @@ class mod_attendance_renderer extends plugin_renderer_base {
* @return string
private function construct_take_controls(attendance_take_data $takedata) {
global $CFG;
$controls = '';
$context = context_module::instance($takedata->cm->id);