From: stronk7 Date: Tue, 14 Oct 2003 17:06:58 +0000 (+0000) Subject: Take out more notices in restore process. Undefined variables, mainly. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e3713e1a3125b47537e4c1be708373ae61bb6604;p=moodle.git Take out more notices in restore process. Undefined variables, mainly. --- 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);