X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FRecent.php;h=59818c0b0161810545c107cf6937bfc61505a124;hb=1074b453cd77cc14e7f91149e244b960f7514d5d;hp=f70c76c2e35f146febd21ae4e900146ff571e88e;hpb=f0be7552105c404ee068bcaabc811180c4d45bb6;p=civicrm-core.git diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index f70c76c2e3..59818c0b01 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -119,11 +119,11 @@ class CRM_Utils_Recent { 'type' => $type, 'contact_id' => $contactId, 'contactName' => $contactName, - 'subtype' => CRM_Utils_Array::value('subtype', $others), - 'isDeleted' => CRM_Utils_Array::value('isDeleted', $others, FALSE), - 'image_url' => CRM_Utils_Array::value('imageUrl', $others), - 'edit_url' => CRM_Utils_Array::value('editUrl', $others), - 'delete_url' => CRM_Utils_Array::value('deleteUrl', $others), + 'subtype' => $others['subtype'] ?? NULL, + 'isDeleted' => $others['isDeleted'] ?? FALSE, + 'image_url' => $others['imageUrl'] ?? NULL, + 'edit_url' => $others['editUrl'] ?? NULL, + 'delete_url' => $others['deleteUrl'] ?? NULL, ] );