]> git.mjollnir.org Git - moodle.git/commitdiff
Take out more notices in restore process. Undefined variables, mainly.
authorstronk7 <stronk7>
Tue, 14 Oct 2003 17:06:58 +0000 (17:06 +0000)
committerstronk7 <stronk7>
Tue, 14 Oct 2003 17:06:58 +0000 (17:06 +0000)
backup/restore_check.html

index ca0fab06f42b9d7d35fe9a46d8e560670f762fd7..54989538c484fc44376921a6c832a002a405c8ea 100644 (file)
@@ -9,7 +9,9 @@
     if ($SESSION) {
         $info = $SESSION->info;
         $course_header = $SESSION->course_header;
-        $restore = $SESSION->restore;
+        if (isset($SESSION->restore)) {
+            $restore = $SESSION->restore;
+        }
     }
 
     //If restore session info exists, but we are posting parameters
@@ -29,7 +31,7 @@
     //If the restore object doesn't exist, we are going
     //to check every variable individually and create it
 
-    if (!$restore) {
+    if (!isset($restore)) {
         //Check that we have all we need
         //backup_unique_code
         require_variable($backup_unique_code);