]> git.mjollnir.org Git - moodle.git/commitdiff
Allow activities to be moved from section 1 to section 0
authormoodler <moodler>
Tue, 10 Jun 2003 13:26:26 +0000 (13:26 +0000)
committermoodler <moodler>
Tue, 10 Jun 2003 13:26:26 +0000 (13:26 +0000)
course/lib.php

index ef78bb43ab8a889bf675cf4d4af2cf224b07aef8..4a2e2d4940cac359a70e7560035cf67f04ff72da 100644 (file)
@@ -1026,8 +1026,9 @@ function move_module($cm, $move) {
     if ($move < 0) {    // Moving the module up
 
         if ($first) {
-            if ($thissection->section == 1) {  // First section, do nothing
+            if ($thissection->section == 0) {  // First section, do nothing
                 return true;
+
             } else {               // Push onto end of previous section
                 $prevsectionnumber = $thissection->section - 1;
                 if (! $prevsection = get_record("course_sections", "course", "$thissection->course",