From: moodler Date: Mon, 30 Dec 2002 05:31:54 +0000 (+0000) Subject: More debugging X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bdece65d727525b3ef23defeaf7a90f0f5785fd2;p=moodle.git More debugging --- 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");