From 29cb6c4c470656266e1c81fc242302d8a29fabc3 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Mon, 22 Jun 2009 11:11:45 +0000 Subject: [PATCH] MDL-18297: Completion date checking - when updating meaning of 'available until', forgot to update validation code --- course/moodleform_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index aa2badcbd0..26383c5f33 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -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'); } -- 2.39.5