improve/fix some things

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-03-16 14:29:30 +01:00
parent d385d43af0
commit 172ae49cdf
5 changed files with 20 additions and 13 deletions

View file

@ -35,14 +35,11 @@ class ConfigurationController
$this->configurationManager->SetBorgBackupHostLocation($request->getParsedBody()['borg_backup_host_location']);
}
if (isset($request->getParsedBody()['clamav'])) {
$value = $request->getParsedBody()['clamav'];
if ($value === 'on') {
if (isset($request->getParsedBody()['options-form'])) {
if (isset($request->getParsedBody()['clamav'])) {
$this->configurationManager->SetClamavEnabledState(1);
} elseif ($value === 'off') {
$this->configurationManager->SetClamavEnabledState(0);
} else {
error_log('It seems like clamav was changed but not to on or off.');
$this->configurationManager->SetClamavEnabledState(0);
}
}