Browse Source

remove php warning from report page when no sessions exist

MOODLE_26_STABLE
Dan Marsden 11 years ago
parent
commit
ce9eb2a16f
  1. 2
      renderer.php

2
renderer.php

@ -816,7 +816,7 @@ class mod_attendance_renderer extends plugin_renderer_base {
}
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;
} else {
$row->cells[] = '';

Loading…
Cancel
Save