Browse Source

remove php warning from report page when no sessions exist

MOODLE_27_STABLE
Dan Marsden 11 years ago
parent
commit
be3eaf034c
  1. 2
      renderer.php

2
renderer.php

@ -816,7 +816,7 @@ class mod_attendance_renderer extends plugin_renderer_base {
} }
if ($reportdata->sessionslog) { if ($reportdata->sessionslog) {
if (isset($reportdata->sessionslog[$user->id][$sess->id]->remarks)) { if (isset($sess) && isset($reportdata->sessionslog[$user->id][$sess->id]->remarks)) {
$row->cells[] = $reportdata->sessionslog[$user->id][$sess->id]->remarks; $row->cells[] = $reportdata->sessionslog[$user->id][$sess->id]->remarks;
} else { } else {
$row->cells[] = ''; $row->cells[] = '';

Loading…
Cancel
Save