Permalink
Browse files

MDL-35349 paypal: Fixing return page so that it now declares page con…

…text
  • Loading branch information...
markn86 committed Nov 2, 2012
1 parent d402e05 commit 4aaac325f204100c3dbbfd60cde436acd794afd9
Showing with 2 additions and 1 deletion.
  1. +2 −1 enrol/paypal/return.php
View
@@ -35,10 +35,11 @@
}
$context = get_context_instance(CONTEXT_COURSE, $course->id, MUST_EXIST);
+$PAGE->set_context($context);
require_login();
-if ($SESSION->wantsurl) {
+if (!empty($SESSION->wantsurl)) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
} else {

0 comments on commit 4aaac32

Please sign in to comment.