From c1543b80e920948de7661f5b10e16699ce5433b1 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 3 Jun 2006 19:01:07 +0000 Subject: [PATCH] Avoid one notice in backup. Bug 5709. (http://moodle.org/bugs/bug.php?op=show&bugid=5709&) Merged from MOODLE_16_STABLE --- backup/backup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup/backup.php b/backup/backup.php index 59b0d34d20..703e77b577 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -117,7 +117,9 @@ //Call the form, depending the step we are if (!$launch) { // if we're at the start, clear the cache of prefs - unset($SESSION->backupprefs[$course->id]); + if (isset($SESSION->backupprefs[$course->id])) { + unset($SESSION->backupprefs[$course->id]); + } include_once("backup_form.html"); } else if ($launch == "check") { include_once("backup_check.html"); -- 2.39.5