From 8e6461f749f452cee0f0df6e5d758871c533672f Mon Sep 17 00:00:00 2001 From: gbateson Date: Fri, 6 Oct 2006 07:09:27 +0000 Subject: [PATCH] fix typo on line 89: get_context_instance(CONTEXT_COURSE, $course) ... should be ... get_context_instance(CONTEXT_COURSE, $course->id) --- mod/hotpot/report/overview/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/report/overview/report.php b/mod/hotpot/report/overview/report.php index bd4a21e499..a2bcee5182 100644 --- a/mod/hotpot/report/overview/report.php +++ b/mod/hotpot/report/overview/report.php @@ -86,7 +86,7 @@ class hotpot_report extends hotpot_default_report { $attemptnumber = ''.$attemptnumber.''; $starttime = ''.$starttime.''; } - if ($is_html && has_capability('mod/hotpot:viewreport',get_context_instance(CONTEXT_COURSE, $course))) { + if ($is_html && has_capability('mod/hotpot:viewreport',get_context_instance(CONTEXT_COURSE, $course->id))) { $checkbox = ''.$spacer; } else { $checkbox = ''; -- 2.39.5