diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-03-21 17:02:56 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-03-21 18:15:04 +0000 |
| commit | 37d202542b6926b7f24161b674e84e3c9e3232ed (patch) | |
| tree | f36264ee3282adb8b8abf09c0747a0eed2aeff24 /includes/functions/functions_import.php | |
| parent | 7d6e38df1dffe55a37db489c801fc8590fc8121b (diff) | |
| download | webtrees-37d202542b6926b7f24161b674e84e3c9e3232ed.tar.gz webtrees-37d202542b6926b7f24161b674e84e3c9e3232ed.tar.bz2 webtrees-37d202542b6926b7f24161b674e84e3c9e3232ed.zip | |
Default/unknown sex
Diffstat (limited to 'includes/functions/functions_import.php')
| -rw-r--r-- | includes/functions/functions_import.php | 16 |
1 files changed, 1 insertions, 15 deletions
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'; |
