mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Bug in "Prevent late submissions" setting fixed, thanks to Samuli, see bug 4780
This commit is contained in:
parent
997bcf0eb8
commit
5c6b657acb
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue