From e2580f491d5247e66f600d328c39e548c6cef69f 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 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) . ' / ' .