mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix setting of fn field to include a space between first/last when no middle
This commit is contained in:
parent
97ed5d20ef
commit
3769cef710
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user