empty($searchValue) ||
trim(strtolower($searchValue)) == 'null'
) {
- // adding this year since developers forget to check for an id
+ // adding this here since developers forget to check for an id
// or for the 'null' (which is a bad DAO kludge)
// and hence we get the first value in the db
CRM_Core_Error::fatal();
}
}
+ // Skip registration if event_id is NULL
+ if (empty($row['event_id'])) {
+ continue;
+ }
+
//carry campaign on selectors.
$row['campaign'] = CRM_Utils_Array::value($result->participant_campaign_id, $allCampaigns);
$row['campaign_id'] = $result->participant_campaign_id;