]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid one notice in backup. Bug 5709.
authorstronk7 <stronk7>
Sat, 3 Jun 2006 19:01:07 +0000 (19:01 +0000)
committerstronk7 <stronk7>
Sat, 3 Jun 2006 19:01:07 +0000 (19:01 +0000)
(http://moodle.org/bugs/bug.php?op=show&bugid=5709&)

Merged from MOODLE_16_STABLE

backup/backup.php

index 59b0d34d208f3d02b1a9b8ae84953c8179373581..703e77b577bf6b69fc3b01fe3b54d79751ad7538 100644 (file)
     //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");