X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FTask%2FLabelCommon.php;h=ddc289154d04f0b7e39dbb9806778ec6a04ee8de;hb=9c1bc317913553a956288e52649f1c372dc7deb0;hp=b3567351766648eee82fe366608d46692a2b2d5b;hpb=554bfe5dfb6c7e64e7b8f4f122910fde8b8b95c4;p=civicrm-core.git diff --git a/CRM/Contact/Form/Task/LabelCommon.php b/CRM/Contact/Form/Task/LabelCommon.php index b356735176..ddc289154d 100644 --- a/CRM/Contact/Form/Task/LabelCommon.php +++ b/CRM/Contact/Form/Task/LabelCommon.php @@ -149,7 +149,7 @@ class CRM_Contact_Form_Task_LabelCommon { $details[$value]["custom_{$cfID}"] = CRM_Core_BAO_CustomField::displayValue($details[$value]["custom_{$cfID}"], $cfID); } } - $contact = CRM_Utils_Array::value($value, $details); + $contact = $details[$value] ?? NULL; if (is_a($contact, 'CRM_Core_Error')) { return NULL;