summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Controller/IndividualController.php2
-rw-r--r--includes/functions/functions_import.php16
2 files changed, 2 insertions, 16 deletions
diff --git a/app/Controller/IndividualController.php b/app/Controller/IndividualController.php
index 2d759c7487..80623ee95d 100644
--- a/app/Controller/IndividualController.php
+++ b/app/Controller/IndividualController.php
@@ -243,7 +243,7 @@ class IndividualController extends GedcomRecordController {
echo ' title="', I18N::translate('Female'), '">';
}
break;
- case 'U':
+ default:
echo 'unknown_gender"';
if ($event->canEdit()) {
echo ' title="', I18N::translateContext('unknown gender', 'Unknown'), ' - ', I18N::translate('Edit'), '"';
diff --git a/includes/functions/functions_import.php b/includes/functions/functions_import.php
index 16eed00bd0..151d55b3e6 100644
--- a/includes/functions/functions_import.php
+++ b/includes/functions/functions_import.php
@@ -462,21 +462,7 @@ function reformat_record_import($rec, Tree $tree) {
$tag = 'SSN';
break;
case 'SEX':
- switch (trim($data)) {
- case 'M':
- case 'F':
- case 'U':
- break;
- case 'm':
- $data = 'M';
- break;
- case 'f':
- $data = 'F';
- break;
- default:
- $data = 'U';
- break;
- }
+ $data = strtoupper($data);
break;
case 'SOURCE':
$tag = 'SOUR';