'status',
'membership_type',
] as $fld) {
- $membership[$dao->id][$fld] = CRM_Utils_Array::value($fld, $statusANDType[$dao->id]);
+ $membership[$dao->id][$fld] = $statusANDType[$dao->id][$fld] ?? NULL;
}
if (!empty($statusANDType[$dao->id]['is_current_member'])) {
$membership[$dao->id]['active'] = TRUE;