Bug in "Prevent late submissions" setting fixed, thanks to Samuli, see bug 4780

This commit is contained in:
gustav_delius 2006-02-16 21:56:57 +00:00
parent 997bcf0eb8
commit 5c6b657acb

View file

@ -1,4 +1,4 @@
<?php // $Id$
<?PHP // $Id$
/**
* assignment_base is the base class for assignment types
*
@ -390,10 +390,10 @@ class assignment_base {
// will create a new instance and return the id number
// of the new instance.
$assignment->timemodified = time();
$assignment->timemodified = time();
if (empty($assignment->dueenable)) {
$assignment->timedue = 0;
$assignment->preventlate = 0;
} else {
$assignment->timedue = make_timestamp($assignment->dueyear, $assignment->duemonth,
$assignment->dueday, $assignment->duehour,
@ -401,7 +401,6 @@ class assignment_base {
}
if (empty($assignment->availableenable)) {
$assignment->timeavailable = 0;
$assignment->preventlate = 0;
} else {
$assignment->timeavailable = make_timestamp($assignment->availableyear, $assignment->availablemonth,
$assignment->availableday, $assignment->availablehour,