Skip to content
Browse files

Merge branch 'MDL-35349_m23' of git://github.com/markn86/moodle into …

…MOODLE_23_STABLE
  • Loading branch information...
2 parents bc7fdb4 + 4aaac32 commit b99ee21bfca9e3290e6133b6907523f3eefb568a @danpoltawski danpoltawski committed Nov 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 enrol/paypal/return.php
View
3 enrol/paypal/return.php
@@ -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 b99ee21

Please sign in to comment.
Something went wrong with that request. Please try again.