From ad41694c04b165ecc0dc59f205836f8d3e98d124 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 10 Jun 2003 13:26:26 +0000 Subject: [PATCH] Allow activities to be moved from section 1 to section 0 --- course/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- 2.39.5