From 0e31f6796a74cdf96d784b5ab231af76df068bab Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 13 Apr 2017 12:22:09 +1200 Subject: [PATCH] Fix some coding guideline issues. --- classes/structure.php | 2 +- renderer.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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));