]> git.mjollnir.org Git - moodle.git/commitdiff
Removed check for course format changing
authormartin <martin>
Sat, 1 Jun 2002 13:47:42 +0000 (13:47 +0000)
committermartin <martin>
Sat, 1 Jun 2002 13:47:42 +0000 (13:47 +0000)
course/edit.php

index 1589fb0f0ed047146f3b9a10b952e05548087ba0..876bd79f03f5b77df2cd8dd9edff8b2951eff515 100644 (file)
@@ -153,10 +153,10 @@ function validate_form($course, &$form, &$err) {
     if ($form->startdate > $form->enddate)
         $err["startdate"] = "Starts after it ends!";
 
-    if (($form->startdate < time()) && ($course->format <> $form->format)) {
-        $err["format"] = "Can't change the format now";
-        $form->format = $course->format;
-    }
+#    if (($form->startdate < time()) && ($course->format <> $form->format)) {
+#        $err["format"] = "Can't change the format now";
+#        $form->format = $course->format;
+#    }
 
     if (! $form->category)
         $err["category"] = "You need to choose a category";