Browse Source

Fixed warning for group sessions for students which are not member of any group

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
a772f82c6d
  1. 5
      report.php

5
report.php

@ -165,12 +165,15 @@
$table->data[$student->id][] = '<font color="red"><b>'.$allstatuses[$att->statusid]->acronym.'</b></font>'; $table->data[$student->id][] = '<font color="red"><b>'.$allstatuses[$att->statusid]->acronym.'</b></font>';
} }
} else { } else {
if ($sessdata->groupid && !array_key_exists($sessdata->groupid, $studgroups)) if (!$studgroups || $sessdata->groupid && !array_key_exists($sessdata->groupid, $studgroups))
// student is not memeber of any group OR it is session of other group
$table->data[$student->id][] = ''; $table->data[$student->id][] = '';
else else
if($sessdata->lasttaken > 0) { if($sessdata->lasttaken > 0) {
// student began to study in the group later this session
$table->data[$student->id][] = '–'; $table->data[$student->id][] = '–';
} else { } else {
// no attendance data for session
$table->data[$student->id][] = '?'; $table->data[$student->id][] = '?';
} }
} }

Loading…
Cancel
Save