mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #48 and Issue #49 - Changed durations text field to duration, eliminating the problem of negative values. Invalid values will become blank and therefore use our hardcoded defaults.
This commit is contained in:
4
new.php
4
new.php
@@ -46,8 +46,8 @@ $config = outagelib::get_config();
|
||||
$defaults = new outage([
|
||||
'autostart' => $config->default_autostart,
|
||||
'starttime' => time(),
|
||||
'stoptime' => time() + ($config->default_duration * 60),
|
||||
'warntime' => time() - ($config->default_warning_duration * 60),
|
||||
'stoptime' => time() + $config->default_duration,
|
||||
'warntime' => time() - $config->default_warning_duration,
|
||||
'title' => $config->default_title,
|
||||
'description' => $config->default_description,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user