diff --git a/openy_field_hours/modules/openy_field_custom_hours/src/Plugin/Field/FieldType/CustomHoursItem.php b/openy_field_hours/modules/openy_field_custom_hours/src/Plugin/Field/FieldType/CustomHoursItem.php index 7278ff20..e424264a 100644 --- a/openy_field_hours/modules/openy_field_custom_hours/src/Plugin/Field/FieldType/CustomHoursItem.php +++ b/openy_field_hours/modules/openy_field_custom_hours/src/Plugin/Field/FieldType/CustomHoursItem.php @@ -70,7 +70,7 @@ public static function schema(FieldStorageDefinitionInterface $field_definition) */ public function isEmpty() { $values = $this->getValue(); - if ($values['hours_label'] !== '') { + if (isset($values['hours_label']) && $values['hours_label'] !== '') { return FALSE; } return TRUE;