MDL-24383 adding missing context setup - credit goes to Paul Ortman
authorPetr Skoda <skodak@moodle.org>
Mon, 27 Sep 2010 09:15:28 +0000 (09:15 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 27 Sep 2010 09:15:28 +0000 (09:15 +0000)
user/messageselect.php

index 4c37e0b..73bc5ad 100644 (file)
@@ -58,6 +58,7 @@ if ($deluser !== 0) {
     $url->param('deluser', $deluser);
 }
 $PAGE->set_url($url);
     $url->param('deluser', $deluser);
 }
 $PAGE->set_url($url);
+$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
 
 if (!$course = $DB->get_record('course', array('id'=>$id))) {
     print_error('invalidcourseid');
 
 if (!$course = $DB->get_record('course', array('id'=>$id))) {
     print_error('invalidcourseid');