fix country iso_code php notice

This commit is contained in:
Mozgito 2021-12-27 14:43:14 +03:00
parent 463485509e
commit a25260f6eb

View file

@ -77,8 +77,8 @@ class ControllerApiRetailcrm extends Controller
$address = array(
'country_id' => $country_id,
'zone_id' => $zone['zone_id'],
'iso_code_2' => $country['iso_code_2'],
'iso_code_3' => $country['iso_code_3'],
'iso_code_2' => !empty($country['iso_code_2']) ? $country['iso_code_2'] : '',
'iso_code_3' => !empty($country['iso_code_3']) ? $country['iso_code_3'] : '',
'zone_code' => $zone['code'],
'postcode' => '',
'city' => ''