Browse Source

bug fix for community issue: reportdata session log offset non existant

MOODLE_26_STABLE
Joseph Baxter 11 years ago
parent
commit
b9ed00d3a8
  1. 2
      renderer.php

2
renderer.php

@ -869,9 +869,11 @@ class mod_attendance_renderer extends plugin_renderer_base {
foreach ($reportdata->sessions as $sess) {
foreach ($reportdata->users as $user) {
foreach($reportdata->statuses as $status) {
if (!empty($reportdata->sessionslog[$user->id][$sess->id])) {
if ($reportdata->sessionslog[$user->id][$sess->id]->statusid == $status->id) $sessionstats[$status->id]++;
}
}
}
$statsoutput = '<br/>';
foreach($reportdata->statuses as $status) {

Loading…
Cancel
Save