From 9624538cdf9fb7f016fccc69056ed2513c30e88b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 10 Apr 2014 13:09:46 +1200 Subject: [PATCH] eNotice fix --- CRM/Contact/Page/AJAX.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index a60304a962..870eae3136 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -102,14 +102,14 @@ class CRM_Contact_Page_AJAX { // check that this is a valid, active custom field of Contact Reference type $params = array('id' => $cfID); $returnProperties = array('filter', 'data_type', 'is_active'); - $fldValues = array(); + $fldValues =$cf = array(); CRM_Core_DAO::commonRetrieve('CRM_Core_DAO_CustomField', $params, $cf, $returnProperties); if (!$cf['id'] || !$cf['is_active'] || $cf['data_type'] = !'ContactReference') { echo "$name|error\n"; CRM_Utils_System::civiExit(); } - if ($cf['filter']) { + if (!empty($cf['filter'])) { $filterParams = array(); parse_str($cf['filter'], $filterParams); -- 2.25.1