From: John Kingsnorth Date: Mon, 19 Apr 2021 08:35:57 +0000 (+0100) Subject: dev/core#2549 Fix undefined index when merging websites X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b396064005486666c16ea84f2855c46ca248ce2f;p=civicrm-core.git dev/core#2549 Fix undefined index when merging websites --- 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;