Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 8e6461f749f452cee0f0df6e5d758871c533672f 1 parent 83ea392
gbateson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/hotpot/report/overview/report.php
2  mod/hotpot/report/overview/report.php
View
@@ -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 = '';
Please sign in to comment.
Something went wrong with that request. Please try again.