Permalink
Browse files

More debugging

  • Loading branch information...
1 parent 47f1da8 commit bdece65d727525b3ef23defeaf7a90f0f5785fd2 moodler committed Dec 30, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/mod.php
View
@@ -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");

0 comments on commit bdece65

Please sign in to comment.