fixed gender labels

This commit is contained in:
Sarah Poger Gladstone 2019-05-28 06:06:22 -04:00 committed by GitHub
parent b64cef5627
commit 3422d6b46c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -915,8 +915,10 @@ function process_singles(&$suffixes, &$prefixes, &$values, $greetings_token_name
$gender_id = $contact_dao->gender_id; $gender_id = $contact_dao->gender_id;
if ($gender_id == 1){ if ($gender_id == 1){
$gender_label = "Female"; $gender_label = "Female";
}else if($gender_id == 2){
$gender_label = "Male";
}else{ }else{
$gender_label = "Male"; $gender_label = "";
} }
$cur_prefix = $prefix_label; $cur_prefix = $prefix_label;
@ -991,8 +993,10 @@ function process_singles(&$suffixes, &$prefixes, &$values, $greetings_token_name
$gender_id = $contact_dao->gender_id; $gender_id = $contact_dao->gender_id;
if ($gender_id == 1){ if ($gender_id == 1){
$gender_label = "Female"; $gender_label = "Female";
}else if($gender_id == 2){
$gender_label = "Male";
}else{ }else{
$gender_label = "Male"; $gender_label = "";
} }
$cur_prefix = $prefix_label; $cur_prefix = $prefix_label;