mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 18:18:07 +02:00
Issue #20 - Allow changing also past and present outages.
This commit is contained in:
1 parent
b8b3dc7f05
commit
07ee61f4f3
2 files changed
-4
No files matched your search
@@ -72,9 +72,6 @@ class edit extends \moodleform {
|
||||
public function validation($data, $files) {
|
||||
$errors = parent::validation($data, $files);
|
||||
|
||||
if ($data['starttime'] <= time()) {
|
||||
$errors['starttime'] = get_string('starttimeerrornotinfuture', 'auth_outage');
|
||||
}
|
||||
if ($data['stoptime'] <= $data['starttime']) {
|
||||
$errors['stoptime'] = get_string('stoptimeerrornotafterstart', 'auth_outage');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user