Permalink
Browse files

fix typo on line 89: get_context_instance(CONTEXT_COURSE, $course) ..…

…. should be ... get_context_instance(CONTEXT_COURSE, $course->id)
  • Loading branch information...
1 parent 83ea392 commit 8e6461f749f452cee0f0df6e5d758871c533672f gbateson committed Oct 6, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/report/overview/report.php
@@ -86,7 +86,7 @@ function create_overview_table(&$hotpot, &$cm, &$course, &$users, &$attempts, &$
$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 = '';

0 comments on commit 8e6461f

Please sign in to comment.