Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / CRM / Profile / Page / MultipleRecordFieldsListing.php
index a5219a729894e0fce64f6a216862903dfd8bed1c..f04a4ff2d3867e17e7343500599dea8c1439fe6c 100644 (file)
@@ -302,17 +302,17 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
             if (is_numeric($fieldId)) {
               $customValue = &$val;
               if (!empty($dateFields) && array_key_exists($fieldId, $dateFields)) {
-                // formated date capture value capture
+                // formatted date capture value capture
                 $dateFieldsVals[$fieldId][$recId] = CRM_Core_BAO_CustomField::getDisplayValue($customValue, $fieldId, $options);
 
                 //set date and time format
                 switch ($timeFormat) {
                   case 1:
-                    $dateFormat[] = 'g:iA';
+                    $dateFormat[1] = 'g:iA';
                     break;
 
                   case 2:
-                    $dateFormat[] = 'G:i';
+                    $dateFormat[1] = 'G:i';
                     break;
 
                   default: