From: sam_marshall Date: Mon, 22 Jun 2009 11:11:45 +0000 (+0000) Subject: MDL-18297: Completion date checking - when updating meaning of 'available until'... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=29cb6c4c470656266e1c81fc242302d8a29fabc3;p=moodle.git MDL-18297: Completion date checking - when updating meaning of 'available until', forgot to update validation code --- 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'); }