]> git.mjollnir.org Git - moodle.git/commitdiff
Added suport to new restoreto options
authorstronk7 <stronk7>
Sat, 2 Aug 2003 23:37:41 +0000 (23:37 +0000)
committerstronk7 <stronk7>
Sat, 2 Aug 2003 23:37:41 +0000 (23:37 +0000)
backup/restorelib.php

index 6112eda313028ef4adafe9c4aa19001cb577bc52..29718af13354b1316fbe55d4dc6e31a19ec96963 100644 (file)
                 $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 {