diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 3f1bb0d..af0e009 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -178,7 +178,12 @@ class SettingsValidator extends AbstractValidator */ protected function handleValidationGroups(array &$validatorConfig) { - if ($validatorConfig['validator'] !== 'DigiComp.SettingValidator:Settings' || empty($validatorConfig['options']['validationGroups'])) { + if (isset($validatorConfig['options']['validationGroups']) + && ( + $validatorConfig['validator'] !== 'DigiComp.SettingValidator:Settings' + || empty($validatorConfig['options']['validationGroups']) + ) + ) { unset($validatorConfig['options']['validationGroups']); } }