From: moodler Date: Mon, 3 Mar 2008 05:28:56 +0000 (+0000) Subject: Merged notice fix X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=61a482fdb48409077cea22771ce673cee2d290cf;p=moodle.git Merged notice fix --- diff --git a/course/enrol.php b/course/enrol.php index 1cc1f87e22..0ebb95e60a 100644 --- a/course/enrol.php +++ b/course/enrol.php @@ -43,7 +43,7 @@ /// changed during this session or something if (has_capability('moodle/course:view', $context) and !has_capability('moodle/legacy:guest', $context, NULL, false)) { - if ($SESSION->wantsurl) { + if (!empty($SESSION->wantsurl)) { $destination = $SESSION->wantsurl; unset($SESSION->wantsurl); } else {