eNotice fix
authorEileen McNaughton <eileen@mcnaughty.com>
Thu, 10 Apr 2014 01:09:46 +0000 (13:09 +1200)
committerEileen McNaughton <eileen@mcnaughty.com>
Thu, 10 Apr 2014 01:09:46 +0000 (13:09 +1200)
CRM/Contact/Page/AJAX.php

index a60304a96267aca93c540883f5bc15fa7d9f21fd..870eae3136894ad50505221b007eb5e9ea7b225e 100644 (file)
@@ -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);