diff --git a/renderer.php b/renderer.php index 0c69ff1..125d114 100644 --- a/renderer.php +++ b/renderer.php @@ -1029,7 +1029,7 @@ class mod_attendance_renderer extends plugin_renderer_base { $row->cells[] = userdate($sess->sessdate, get_string('strftimedmyw', 'attendance')) . " ". $this->construct_time($sess->sessdate, $sess->duration); $row->cells[] = $sess->description; - if (isset($sess->statusid)) { + if (!empty($sess->statusid)) { $status = $userdata->statuses[$sess->statusid]; $row->cells[] = $status->description; $row->cells[] = format_float($status->grade, 1, true, true) . ' / ' .