Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / CRM / Profile / Page / MultipleRecordFieldsListing.php
index 771fe237b37ca671420ac676af17571842058a1a..f04a4ff2d3867e17e7343500599dea8c1439fe6c 100644 (file)
@@ -171,6 +171,7 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
   public function browse() {
     $dateFields = NULL;
     $cgcount = 0;
+    $attributes = array();
     $dateFieldsVals = NULL;
     if ($this->_pageViewType == 'profileDataView' && $this->_profileId) {
       $fields = CRM_Core_BAO_UFGroup::getFields($this->_profileId, FALSE, NULL,
@@ -307,11 +308,11 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
                 //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: