Skip to content

Commit

Permalink
MDL-19077: Fix Martin's code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Jul 20, 2009
1 parent 7a567a9 commit 3975c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/view.php
Expand Up @@ -52,7 +52,7 @@
}
$usercontext = get_context_instance(CONTEXT_USER, $user->id); // User context

$PAGE->context = $usercontext;
$PAGE->set_context($usercontext);

if (!empty($CFG->forcelogin) || $course->id != SITEID) {
// do not force parents to enrol
Expand Down

0 comments on commit 3975c76

Please sign in to comment.