From 37d202542b6926b7f24161b674e84e3c9e3232ed Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sat, 21 Mar 2015 17:02:56 +0000 Subject: Default/unknown sex --- includes/functions/functions_import.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'includes/functions/functions_import.php') 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'; -- cgit v1.3