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 f47b2e4 commit 853d6d008f4e81d6639e45e378281b03aeb20af0
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 853d6d0

Please sign in to comment.