From 9a57ccc767d1e211f20a901a4ba2a2a17c46b2cc Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 30 Jun 2017 09:43:06 +1200 Subject: [PATCH] fix php warning when no status set. --- renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer.php b/renderer.php index b10c6fe..9d65db8 100644 --- a/renderer.php +++ b/renderer.php @@ -1046,7 +1046,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) . ' / ' .