From d94c6483568da051ce6531cc446007cf9aaa3938 Mon Sep 17 00:00:00 2001 From: Klaas Eikelboom Date: Mon, 2 Aug 2021 15:18:56 +0200 Subject: [PATCH] Do not generate a notice when a vcard is downloaded --- CRM/Contact/Page/View/Vcard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Page/View/Vcard.php b/CRM/Contact/Page/View/Vcard.php index eb514ca049..9d98552cf3 100644 --- a/CRM/Contact/Page/View/Vcard.php +++ b/CRM/Contact/Page/View/Vcard.php @@ -127,7 +127,7 @@ class CRM_Contact_Page_View_Vcard extends CRM_Contact_Page_View { if ($vcardName) { $vcard->addParam('TYPE', $vcardName); } - if ($phone['is_primary']) { + if (!empty($phone['is_primary'])) { $vcard->addParam('TYPE', 'PREF'); } } @@ -140,7 +140,7 @@ class CRM_Contact_Page_View_Vcard extends CRM_Contact_Page_View { if ($vcardName) { $vcard->addParam('TYPE', $vcardName); } - if ($email['is_primary']) { + if (!empty($email['is_primary'])) { $vcard->addParam('TYPE', 'PREF'); } } -- 2.25.1