Fix setting of fn field to include a space between first/last when no middle

This commit is contained in:
Miles Lott 2001-03-12 02:21:20 +00:00
parent 97ed5d20ef
commit 3769cef710
2 changed files with 4 additions and 4 deletions

View File

@ -55,9 +55,9 @@
$fields["n_prefix"] = $prefix; $fields["n_prefix"] = $prefix;
$fields["n_suffix"] = $suffix; $fields["n_suffix"] = $suffix;
if ($prefix) { $pspc = " "; } if ($prefix) { $pspc = " "; }
if ($middle) { $mspc = " "; } if ($middle) { $mspc = " "; } else { $nspc = " "; }
if ($suffix) { $sspc = " "; } if ($suffix) { $sspc = " "; }
$fields["fn"] = $prefix.$pspc.$firstname.$mspc.$middle.$mspc.$lastname.$sspc.$suffix; $fields["fn"] = $prefix.$pspc.$firstname.$nspc.$mspc.$middle.$mspc.$lastname.$sspc.$suffix;
$fields["d_email"] = $email; $fields["d_email"] = $email;
$fields["d_emailtype"] = $email_type; $fields["d_emailtype"] = $email_type;
$fields["title"] = $title; $fields["title"] = $title;

View File

@ -63,9 +63,9 @@
$fields["n_prefix"] = $prefix; $fields["n_prefix"] = $prefix;
$fields["n_suffix"] = $suffix; $fields["n_suffix"] = $suffix;
if ($prefix) { $pspc = " "; } if ($prefix) { $pspc = " "; }
if ($middle) { $mspc = " "; } if ($middle) { $mspc = " "; } else { $nspc = " "; }
if ($suffix) { $sspc = " "; } if ($suffix) { $sspc = " "; }
$fields["fn"] = $prefix.$pspc.$firstname.$mspc.$middle.$mspc.$lastname.$sspc.$suffix; $fields["fn"] = $prefix.$pspc.$firstname.$nspc.$mspc.$middle.$mspc.$lastname.$sspc.$suffix;
$fields["d_email"] = $email; $fields["d_email"] = $email;
$fields["d_emailtype"] = $email_type; $fields["d_emailtype"] = $email_type;
$fields["title"] = $title; $fields["title"] = $title;