]> git.mjollnir.org Git - moodle.git/commitdiff
Author: Matt Clarkson <mattc@catalyst.net.nz>
authormattc-catalyst <mattc-catalyst>
Tue, 30 Oct 2007 20:46:18 +0000 (20:46 +0000)
committermattc-catalyst <mattc-catalyst>
Tue, 30 Oct 2007 20:46:18 +0000 (20:46 +0000)
enrol/imsenterprise/enrol.php

index 416073d5599598aaed88e3c39197896665318bec..3d364bdf902da0b7cfbf6f1737736597319fbd3f 100644 (file)
@@ -301,6 +301,7 @@ function cron() {
                 } // End of while-tags-are-detected
                 } // end of while loop
                 fclose($fh);
+                fix_course_sortorder();
             } // end of if(file_open) for first pass
 
             /*
@@ -555,7 +556,6 @@ function process_group_tag($tagcontents){
                     $section->section = 0;
                     $section->id = insert_record("course_sections", $section);
 
-                    fix_course_sortorder();
                     add_to_log(SITEID, "course", "new", "view.php?id=$course->id", "$course->fullname (ID $course->id)");
 
                     $this->log_line("Created course $coursecode in Moodle (Moodle ID is $course->id)");