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. 4
      renderer.php

4
renderer.php

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

Loading…
Cancel
Save