CRM-13992 : minor warning fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 28 Feb 2014 11:14:17 +0000 (16:44 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 28 Feb 2014 11:14:17 +0000 (16:44 +0530)
CRM/Profile/Page/MultipleRecordFieldsListing.php

index a8fe335ff78ee263337dda57128a85aed1dc4627..9af8ed9571d6b37efbdd26254adfafdb3b750a86 100644 (file)
@@ -289,7 +289,7 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
           foreach ($value as $fieldId => &$val) {
             if (is_numeric($fieldId)) {
               $customValue = &$val;
-              if (array_key_exists($fieldId, $dateFields)) {
+              if (!empty($dateFields) && array_key_exists($fieldId, $dateFields)) {
                 // formated date capture value capture
                 $dateFieldsVals[$fieldId][$recId] = CRM_Core_BAO_CustomField::getDisplayValue($customValue, $fieldId, $options);
               }