]> git.mjollnir.org Git - moodle.git/commitdiff
More debugging
authormoodler <moodler>
Mon, 30 Dec 2002 05:31:54 +0000 (05:31 +0000)
committermoodler <moodler>
Mon, 30 Dec 2002 05:31:54 +0000 (05:31 +0000)
course/mod.php

index 4c4787eee7bc0697c6b3726dfbf24c0cace816c8..8738dde9c360f54588eee2c82d7e082fe9816a7a 100644 (file)
@@ -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");