From ef795d7d36b9969f6c686bd32277976991dc429a Mon Sep 17 00:00:00 2001 From: Paul Weidner Date: Fri, 31 May 2024 11:52:34 -0700 Subject: [PATCH] Check for value key --- .../farm_rothamsted_notification.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/farm_rothamsted_notification/farm_rothamsted_notification.module b/modules/farm_rothamsted_notification/farm_rothamsted_notification.module index 3bdc6615..c58bdb29 100644 --- a/modules/farm_rothamsted_notification/farm_rothamsted_notification.module +++ b/modules/farm_rothamsted_notification/farm_rothamsted_notification.module @@ -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;