From: stronk7 Date: Sat, 2 Aug 2003 23:37:41 +0000 (+0000) Subject: Added suport to new restoreto options X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=642ac8485598c9e45f939882a812e22c965ee172;p=moodle.git Added suport to new restoreto options --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 6112eda313..29718af133 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -339,7 +339,7 @@ $section->sequence = ""; //Now calculate the section's newid $newid = 0; - if ($restore->restoreto == 1) { + if ($restore->restoreto == 2) { //Save it to db (only if restoring to new course) $newid = insert_record("course_sections",$section); } else {