]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18297: Completion date checking - when updating meaning of 'available until'...
authorsam_marshall <sam_marshall>
Mon, 22 Jun 2009 11:11:45 +0000 (11:11 +0000)
committersam_marshall <sam_marshall>
Mon, 22 Jun 2009 11:11:45 +0000 (11:11 +0000)
course/moodleform_mod.php

index aa2badcbd00b8bf72c0ac1de55ec7ae7849a2583..26383c5f33e4d7f7384bc4b5e916a7140f1e7263 100644 (file)
@@ -275,7 +275,7 @@ class moodleform_mod extends moodleform {
         // Conditions: Don't let them set dates which make no sense
         if (array_key_exists('availablefrom', $data) && 
             $data['availablefrom'] && $data['availableuntil'] && 
-            $data['availablefrom']>=$data['availableuntil']) {
+            $data['availablefrom'] > $data['availableuntil']) {
             $errors['availablefrom'] = get_string('badavailabledates', 'condition');
         }