From 61a482fdb48409077cea22771ce673cee2d290cf Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 3 Mar 2008 05:28:56 +0000 Subject: [PATCH] Merged notice fix --- course/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5