Another fix for #2440

This commit is contained in:
James Cole
2019-08-22 17:56:48 +02:00
parent a11f876c49
commit 967ea6a181
4 changed files with 73 additions and 45 deletions

View File

@@ -82,7 +82,7 @@ trait RecurrenceValidation
* @var array $repetition
*/
foreach ($repetitions as $index => $repetition) {
switch ($repetition['type']) {
switch ($repetition['type'] ?? 'empty') {
default:
$validator->errors()->add(sprintf('repetitions.%d.type', $index), (string)trans('validation.valid_recurrence_rep_type'));