Fixes a scenario where the value can be 'null' and then fatals
I hit this creating a new membership record on a stock build
'status_id:name' => $isCompleted ? 'Completed' : 'Scheduled',
'skipRecentView' => TRUE,
'subject' => CRM_Activity_BAO_Activity::getActivitySubject($contribution),
- 'campaign_id' => $contribution->campaign_id,
+ 'campaign_id' => !is_numeric($contribution->campaign_id) ? NULL : $contribution->campaign_id,
'id' => $existingActivity['id'] ?? NULL,
];
if (!$activityParams['id']) {