Browse Source

Fix some coding guideline issues.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
0e31f6796a
  1. 2
      classes/structure.php
  2. 1
      renderer.php

2
classes/structure.php

@ -591,7 +591,7 @@ class mod_attendance_structure {
$extrafields = get_extra_user_fields($this->context, $fields); $extrafields = get_extra_user_fields($this->context, $fields);
$fields = array_merge($fields, $extrafields); $fields = array_merge($fields, $extrafields);
$userfields = user_picture::fields('u',$fields); $userfields = user_picture::fields('u', $fields);
if (empty($this->pageparams->sort)) { if (empty($this->pageparams->sort)) {
$this->pageparams->sort = ATT_SORT_DEFAULT; $this->pageparams->sort = ATT_SORT_DEFAULT;

1
renderer.php

@ -968,7 +968,6 @@ class mod_attendance_renderer extends plugin_renderer_base {
$rows[] = $row; $rows[] = $row;
foreach ($reportdata->users as $user) { foreach ($reportdata->users as $user) {
$row = new html_table_row(); $row = new html_table_row();
$row->cells[] = $this->build_data_cell($this->user_picture($user)); $row->cells[] = $this->build_data_cell($this->user_picture($user));

Loading…
Cancel
Save