Permalink
Browse files

MDL-27192 Page context error on calendar export with custom user

profile fields
  • Loading branch information...
1 parent de58499 commit 8acd718118c4a519e556d00116652561d64570fe @jason-platts jason-platts committed May 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 calendar/export_execute.php
@@ -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');
}

0 comments on commit 8acd718

Please sign in to comment.