Skip to content

Commit

Permalink
Merge branch 'wip-MDL-41317-m25' of git://github.com/marinaglancy/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_25_STABLE
  • Loading branch information
danpoltawski committed Sep 3, 2013
2 parents 0522e09 + 827c357 commit fb7bb9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions user/messageselect.php
Expand Up @@ -58,13 +58,12 @@
$url->param('deluser', $deluser);
}
$PAGE->set_url($url);
$PAGE->set_context(context_system::instance());

if (!$course = $DB->get_record('course', array('id'=>$id))) {
print_error('invalidcourseid');
}

require_login();
require_login($course);

$coursecontext = context_course::instance($id); // Course context
$systemcontext = context_system::instance(); // SYSTEM context
Expand Down

0 comments on commit fb7bb9a

Please sign in to comment.