Merge branch 'MDL-41598-master' of https://github.com/mackensen/moodle

This commit is contained in:
Dan Poltawski
2015-07-27 15:24:31 +01:00
+1 -1
View File
@@ -10,7 +10,7 @@
// Support for WAYFless URLs.
$target = optional_param('target', '', PARAM_LOCALURL);
if (!empty($target)) {
if (!empty($target) && empty($SESSION->wantsurl)) {
$SESSION->wantsurl = $target;
}