From b782ec15ecdca412eb393bac74e4306f9b174474 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 1 Oct 2013 19:49:48 +0530 Subject: [PATCH] CRM-13474 : fix for warning displayed - undefined index 'street_address' ---------------------------------------- * CRM-13474: Undefined index: street_address in CRM_Import_Parser_Contact->createContact() http://issues.civicrm.org/jira/browse/CRM-13474 --- CRM/Contact/Import/Parser/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 2ea3e6232e..f6d063ddca 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -1678,7 +1678,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { //get the id of the contact whose street address is not parsable, CRM-5886 if ($this->_parseStreetAddress && $newContact->address) { foreach ($newContact->address as $address) { - if ($address['street_address'] && (!CRM_Utils_Array::value('street_number', $address) || !CRM_Utils_Array::value('street_name', $address))) { + if (!empty($address['street_address']) && (!CRM_Utils_Array::value('street_number', $address) || !CRM_Utils_Array::value('street_name', $address))) { $this->_unparsedStreetAddressContacts[] = array( 'id' => $newContact->id, 'streetAddress' => $address['street_address'], -- 2.25.1