diff options
author | Simon Rettberg | 2020-08-04 12:23:43 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-08-04 12:23:43 +0200 |
commit | 105ef486afb29398eea35e3e6fdffae916fc2fc3 (patch) | |
tree | 879bc042678db38d4f9e371747e3ec3c83adcb4c /modules-available | |
parent | [exams] Cast locationList of lecture to string (diff) | |
download | slx-admin-105ef486afb29398eea35e3e6fdffae916fc2fc3.tar.gz slx-admin-105ef486afb29398eea35e3e6fdffae916fc2fc3.tar.xz slx-admin-105ef486afb29398eea35e3e6fdffae916fc2fc3.zip |
[exams] Relax date sanity range when saving exam
It might be desired to set a date in the past for archival reasons
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/exams/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php index b19c156e..3937e108 100644 --- a/modules-available/exams/page.inc.php +++ b/modules-available/exams/page.inc.php @@ -290,7 +290,7 @@ class Page_Exams extends Page private function isDateSane($time) { - return ($time >= $this->rangeMin && $time <= $this->rangeMax); + return ($time >= strtotime('-10 years') && $time <= strtotime('+10 years')); } private function saveExam() |