From: gbateson Date: Fri, 6 Oct 2006 07:09:27 +0000 (+0000) Subject: fix typo on line 89: get_context_instance(CONTEXT_COURSE, $course) ... should be... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8e6461f749f452cee0f0df6e5d758871c533672f;p=moodle.git fix typo on line 89: get_context_instance(CONTEXT_COURSE, $course) ... should be ... get_context_instance(CONTEXT_COURSE, $course->id) --- 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 = '';