From 8ccea71898897252da3a7356510cf17bea1c60bf 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 28cf7ee..90948b8 100644 --- a/renderer.php +++ b/renderer.php @@ -1047,7 +1047,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) . ' / ' .