From b396064005486666c16ea84f2855c46ca248ce2f Mon Sep 17 00:00:00 2001 From: John Kingsnorth Date: Mon, 19 Apr 2021 09:35:57 +0100 Subject: [PATCH] dev/core#2549 Fix undefined index when merging websites --- CRM/Dedupe/Merger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Dedupe/Merger.php b/CRM/Dedupe/Merger.php index 8c19989164..daab1a9d65 100644 --- a/CRM/Dedupe/Merger.php +++ b/CRM/Dedupe/Merger.php @@ -2409,7 +2409,7 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m ) { // Set this value as the default against the 'other' contact value $rows["move_location_{$blockName}_{$count}"]['main'] = $mainValueCheck[$blockInfo['displayField']]; - $rows["move_location_{$blockName}_{$count}"]['main_is_primary'] = $mainValueCheck['is_primary']; + $rows["move_location_{$blockName}_{$count}"]['main_is_primary'] = $mainValueCheck['is_primary'] ?? 0; $rows["move_location_{$blockName}_{$count}"]['location_entity'] = $blockName; $mainContactBlockId = $mainValueCheck['id']; break; -- 2.25.1