From 7c7c2ddb56ef24dcccf8e7f93cc7870be31361c3 Mon Sep 17 00:00:00 2001 From: Nileema Date: Mon, 22 Sep 2014 20:09:46 +0530 Subject: [PATCH] --HR-379 Fix notices coming while importing relationship details --- CRM/Contact/Import/Parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Import/Parser.php b/CRM/Contact/Import/Parser.php index 9f3b8704f3..f648b11e08 100644 --- a/CRM/Contact/Import/Parser.php +++ b/CRM/Contact/Import/Parser.php @@ -597,7 +597,8 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { } if (isset($this->_activeFields[$i]->_relatedContactLocType) && !empty($this->_activeFields[$i]->_value)) { - if (!is_array($params[$this->_activeFields[$i]->_related][$this->_activeFields[$i]->_relatedContactDetails])) { + if (!empty($params[$this->_activeFields[$i]->_related][$this->_activeFields[$i]->_relatedContactDetails]) && + !is_array($params[$this->_activeFields[$i]->_related][$this->_activeFields[$i]->_relatedContactDetails])) { $params[$this->_activeFields[$i]->_related][$this->_activeFields[$i]->_relatedContactDetails] = array(); } $value = array( -- 2.25.1