diff --git a/classes/structure.php b/classes/structure.php index 5176f6c..f1bfe67 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -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. diff --git a/renderer.php b/renderer.php index 9e081f7..039e01c 100644 --- a/renderer.php +++ b/renderer.php @@ -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);