Skip to content

Commit

Permalink
Check for value key
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed May 31, 2024
1 parent 0166347 commit ef795d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function farm_rothamsted_notification_compare_entity_fields(array $array1, array
// Check that a value actually exists when comparing compound fields.
// This fixes a bug where notes always appears to be changing when
// there is no value.
if (count($value) === 0 && isset($array2[$key][0]) && is_null($array2[$key][0]['value'])) {
if (count($value) === 0 && isset($array2[$key][0]['value']) && is_null($array2[$key][0]['value'])) {
continue;
}
$difference[] = $key;
Expand Down

0 comments on commit ef795d7

Please sign in to comment.