diff --git a/classes/structure.php b/classes/structure.php index 1cc95cb..8821b49 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -591,7 +591,7 @@ class mod_attendance_structure { $extrafields = get_extra_user_fields($this->context, $fields); $fields = array_merge($fields, $extrafields); - $userfields = user_picture::fields('u',$fields); + $userfields = user_picture::fields('u', $fields); if (empty($this->pageparams->sort)) { $this->pageparams->sort = ATT_SORT_DEFAULT; diff --git a/renderer.php b/renderer.php index 7f00a67..8a0ce9f 100644 --- a/renderer.php +++ b/renderer.php @@ -968,7 +968,6 @@ class mod_attendance_renderer extends plugin_renderer_base { $rows[] = $row; - foreach ($reportdata->users as $user) { $row = new html_table_row(); $row->cells[] = $this->build_data_cell($this->user_picture($user));