mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
fix excess separator, if not 2nd street-line
This commit is contained in:
parent
0768f5fadf
commit
8793f7895b
@ -518,12 +518,12 @@ class JsContact
|
||||
$components = [];
|
||||
foreach(func_get_args() as $street)
|
||||
{
|
||||
if ($components)
|
||||
{
|
||||
$components[] = ['type' => 'separator', 'value' => "\n"];
|
||||
}
|
||||
if (!empty($street))
|
||||
{
|
||||
if ($components)
|
||||
{
|
||||
$components[] = ['type' => 'separator', 'value' => "\n"];
|
||||
}
|
||||
$components[] = ['type' => 'name', 'value' => $street];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user