Permalink
Browse files

MDL-27941 Fixed a bug introduced by block setting improvement, the

context should be course context
  • Loading branch information...
1 parent 7a7d34f commit 3712f7aaca5244d277e89b489a46870d083b993e @dcai dcai committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/index.php
View
@@ -40,7 +40,7 @@
}
$course = $DB->get_record('course', array('id'=>$context->instanceid), '*', MUST_EXIST);
} else {
- $course = $DB->get_record('course', array('id'=>SITEID), '*', MUST_EXIST);
+ $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST);
$context = get_context_instance(CONTEXT_COURSE, $course->id, MUST_EXIST);
}
// not needed anymore

0 comments on commit 3712f7a

Please sign in to comment.