From be3eaf034cec7173a3243a219227bba2bcb864dc Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 9 May 2014 13:55:09 +1200 Subject: [PATCH] remove php warning from report page when no sessions exist --- renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer.php b/renderer.php index 6b7cdbf..cbfa0ab 100755 --- a/renderer.php +++ b/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[] = '';