From e3713e1a3125b47537e4c1be708373ae61bb6604 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 14 Oct 2003 17:06:58 +0000 Subject: [PATCH] Take out more notices in restore process. Undefined variables, mainly. --- backup/restore_check.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backup/restore_check.html b/backup/restore_check.html index ca0fab06f4..54989538c4 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -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); -- 2.39.5