mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
fix typo on line 89: get_context_instance(CONTEXT_COURSE, $course) ... should be ... get_context_instance(CONTEXT_COURSE, $course->id)
This commit is contained in:
parent
83ea392ee1
commit
8e6461f749
@ -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 = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user