Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.8
-
Fix Version/s: 2.2.10
-
Component/s: Core CiviCRM
-
Labels:None
Description
There is no check to ensure that the HTTP SOAP request to the USPS returns an HTTP 200. If it fails and there is no XML data, the current contact address data is set to NULL.
Here are the errors:
- warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /usr/local/www/drupal6/sites/all/modules/civicrm/CRM/Utils/Address/USPS.php on line 85.
- warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /usr/local/www/drupal6/sites/all/modules/civicrm/CRM/Utils/Address/USPS.php on line 96.