Fix failed Github CI tests

This commit is contained in:
Qihui Chan
2022-12-20 16:35:56 +10:00
parent 9473db8c6e
commit 89e2621bf6
2 changed files with 2 additions and 1 deletions

View File

@@ -164,7 +164,7 @@ class edit extends moodleform {
// If the default_autostart is configured in config, then force autostart to be the default value.
if (array_key_exists('auth_outage', $CFG->forced_plugin_settings)
&& array_key_exists('default_autostart', $CFG->forced_plugin_settings['auth_outage'])){
&& array_key_exists('default_autostart', $CFG->forced_plugin_settings['auth_outage'])) {
$this->_form->setDefaults([
'autostart' => $CFG->forced_plugin_settings['auth_outage']['default_autostart']
]);