From: moodler Date: Tue, 10 Jun 2003 13:26:26 +0000 (+0000) Subject: Allow activities to be moved from section 1 to section 0 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ad41694c04b165ecc0dc59f205836f8d3e98d124;p=moodle.git Allow activities to be moved from section 1 to section 0 --- diff --git a/course/lib.php b/course/lib.php index ef78bb43ab..4a2e2d4940 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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",