Skip to content

Commit

Permalink
Merge pull request #692 from mattwire/7.x-5.x_addressphpnotices
Browse files Browse the repository at this point in the history
D7 - Fix PHP notices when there are no billing address fields
  • Loading branch information
KarinG committed Jan 29, 2022
2 parents d6678e1 + fb3dd0e commit df779a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/wf_crm_webform_postprocess.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1769,11 +1769,11 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base {
$cid = $this->findDuplicateContact($contact);
}
$address = [
'street_address' => $this->billing_params['street_address'],
'city' => $this->billing_params['city'],
'country_id' => $this->billing_params['country_id'],
'street_address' => $this->billing_params['street_address'] ?? '',
'city' => $this->billing_params['city'] ?? '',
'country_id' => $this->billing_params['country_id'] ?? '',
'state_province_id' => wf_crm_aval($this->billing_params, 'state_province_id'),
'postal_code' => $this->billing_params['postal_code'],
'postal_code' => $this->billing_params['postal_code'] ?? '',
'location_type_id' => 'Billing',
];
$email = [
Expand Down

0 comments on commit df779a2

Please sign in to comment.