From bdece65d727525b3ef23defeaf7a90f0f5785fd2 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 30 Dec 2002 05:31:54 +0000 Subject: [PATCH] More debugging --- course/mod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/mod.php b/course/mod.php index 4c4787eee7..8738dde9c3 100644 --- a/course/mod.php +++ b/course/mod.php @@ -6,7 +6,7 @@ require("lib.php"); if (isset($cancel)) { - if ($SESSION->returnpage) { + if (!empty($SESSION->returnpage)) { $return = $SESSION->returnpage; unset($SESSION->returnpage); save_session("SESSION"); @@ -91,7 +91,7 @@ error("Could not cache module information!"); } - if ($SESSION->returnpage) { + if (!empty($SESSION->returnpage)) { $return = $SESSION->returnpage; unset($SESSION->returnpage); save_session("SESSION"); -- 2.39.5