]> git.mjollnir.org Git - moodle.git/commitdiff
fix typo on line 89: get_context_instance(CONTEXT_COURSE, $course) ... should be...
authorgbateson <gbateson>
Fri, 6 Oct 2006 07:09:27 +0000 (07:09 +0000)
committergbateson <gbateson>
Fri, 6 Oct 2006 07:09:27 +0000 (07:09 +0000)
mod/hotpot/report/overview/report.php

index bd4a21e499bb2bc54eeb03cdb2903b5c87229dc8..a2bcee5182d541739665b22a10ce4b6e13de9db2 100644 (file)
@@ -86,7 +86,7 @@ class hotpot_report extends hotpot_default_report {
                                        $attemptnumber = '<a href="review.php?hp='.$hotpot->id.'&attempt='.$attempt->id.'">'.$attemptnumber.'</a>';
                                        $starttime = '<a href="review.php?hp='.$hotpot->id.'&attempt='.$attempt->id.'">'.$starttime.'</a>';
                                }
-                               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 = '<input type=checkbox name="box'.$attempt->clickreportid.'" value="'.$attempt->clickreportid.'">'.$spacer;
                                } else {
                                        $checkbox = '';