fix excess separator, if not 2nd street-line

This commit is contained in:
Ralf Becker 2021-09-17 11:58:39 +02:00
parent 0768f5fadf
commit 8793f7895b

View File

@ -518,12 +518,12 @@ class JsContact
$components = []; $components = [];
foreach(func_get_args() as $street) foreach(func_get_args() as $street)
{ {
if ($components)
{
$components[] = ['type' => 'separator', 'value' => "\n"];
}
if (!empty($street)) if (!empty($street))
{ {
if ($components)
{
$components[] = ['type' => 'separator', 'value' => "\n"];
}
$components[] = ['type' => 'name', 'value' => $street]; $components[] = ['type' => 'name', 'value' => $street];
} }
} }