Permalink
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...
1 parent fadd42e commit 36d38823c05daa1ff9f20f6d154f46c663e80d62 gbateson committed Sep 26, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/lib.php
View
@@ -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();

0 comments on commit 36d3882

Please sign in to comment.