$params[$key] = CRM_Utils_String::strtoboolstr($val);
}
}
+ }
- if ($key == 'birth_date' && $val) {
- CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key);
- }
- elseif ($key == 'deceased_date' && $val) {
- CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key);
- }
- elseif ($key == 'is_deceased' && $val) {
- $params[$key] = CRM_Utils_String::strtoboolstr($val);
- }
- elseif ($key == 'gender') {
- //CRM-4360
- $params[$key] = $this->checkGender($val);
- }
+ if ($key == 'birth_date' && $val) {
+ CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key);
+ }
+ elseif ($key == 'deceased_date' && $val) {
+ CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key);
+ }
+ elseif ($key == 'is_deceased' && $val) {
+ $params[$key] = CRM_Utils_String::strtoboolstr($val);
+ }
+ elseif ($key == 'gender') {
+ //CRM-4360
+ $params[$key] = $this->checkGender($val);
}
}