Skip to content

Commit

Permalink
Merge pull request #67 from froboy/patch-3
Browse files Browse the repository at this point in the history
fix: Add isset check to isEmpty in CustomHoursItem.php
  • Loading branch information
podarok authored Mar 5, 2024
2 parents 5211621 + 8156e03 commit ca8a504
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca8a504

Please sign in to comment.