From 073a682b01afd39773d320bed9827ca021982d63 Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Fri, 16 Jan 2026 10:07:21 +1000 Subject: [PATCH] CI codesniffer fixes. --- classes/dml/outagedb.php | 1 - classes/form/outage/edit.php | 1 - 2 files changed, 2 deletions(-) diff --git a/classes/dml/outagedb.php b/classes/dml/outagedb.php index 1bab0a5..6d78b86 100644 --- a/classes/dml/outagedb.php +++ b/classes/dml/outagedb.php @@ -105,7 +105,6 @@ class outagedb { $outage->autostart = 0; } - if ($outage->id === null) { // If new outage, set its creator. $outage->createdby = $USER->id; diff --git a/classes/form/outage/edit.php b/classes/form/outage/edit.php index 4fbcac8..3393396 100644 --- a/classes/form/outage/edit.php +++ b/classes/form/outage/edit.php @@ -48,7 +48,6 @@ class edit extends moodleform { $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); - if (get_config('auth_outage', 'default_autostart') !== '2') { $mform->addElement('checkbox', 'autostart', get_string('autostart', 'auth_outage')); $mform->addHelpButton('autostart', 'autostart', 'auth_outage');