mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Due date and start date are now optional, as requested in bug 867 and bug 3635
This commit is contained in:
parent
a61a956c65
commit
bb52d44c6a
9 changed files with 175 additions and 91 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue