Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid cont…

…ext creation for level 50 instance" error on "mod/hotpot/index.php" caused by get_context_instance(CONTEXT_MODULE, $course->id) in "mod/hotpot/lib.php"
  • Loading branch information...
commit 0e04dc36c239cec000d0f2144c49632f1205e525 1 parent 68d924c
gbateson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/hotpot/lib.php
View
2  mod/hotpot/lib.php
@@ -775,7 +775,7 @@ function hotpot_get_all_instances_in_course($modulename, $course) {
// cache $isteacher setting
- $isteacher = has_capability('mod/hotpot:viewreport', get_context_instance(CONTEXT_MODULE, $course->id));
+ $isteacher = has_capability('mod/hotpot:viewreport', get_context_instance(CONTEXT_COURSE, $course->id));
$explodesection = array();
$order = array();
Please sign in to comment.
Something went wrong with that request. Please try again.