Due date and start date are now optional, as requested in bug 867 and bug 3635

This commit is contained in:
gustav_delius 2005-07-07 17:16:56 +00:00
parent a61a956c65
commit bb52d44c6a
9 changed files with 175 additions and 91 deletions

View file

@ -365,7 +365,7 @@
/// Check access to quiz page
// check the quiz times
if (($timestamp < $quiz->timeopen || $timestamp > $quiz->timeclose)) {
if ($timestamp < $quiz->timeopen || ($quiz->timeclose and $timestamp > $quiz->timeclose)) {
if ($isteacher) {
notify(get_string('notavailabletostudents', 'quiz'));
} else {
@ -473,7 +473,7 @@
echo "</form>\n";
$secondsleft = $quiz->timeclose - time();
$secondsleft = ($quiz->timeclose ? $quiz->timeclose : 999999999999) - time();
// If time limit is set include floating timer.
if ($quiz->timelimit > 0) {