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,
//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: