Skip to content

Commit

Permalink
MDL-27192 Page context error on calendar export with custom user
Browse files Browse the repository at this point in the history
profile fields
  • Loading branch information
jason-platts committed May 17, 2011
1 parent de58499 commit 8acd718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/export_execute.php
Expand Up @@ -11,9 +11,9 @@
if (empty($CFG->enablecalendarexport)) {
die('no export');
}

global $DB;
//Fetch user information
if (!$user = get_complete_user_data('username', $username)) {
if (!$user = $DB->get_record('user', array('username' => $username), 'id,password')) {
//No such user
die('Invalid authentication');
}
Expand Down

0 comments on commit 8acd718

Please sign in to comment.