From 963c504890e01b787eba0a81038092e7e0f3db03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 24 Jul 2008 15:10:37 +0000 Subject: [PATCH] Adressenfix --- bin/mozilla/ustva.pl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index d7ef9caeb..212c3815c 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -121,19 +121,14 @@ sub report { # klären, ob $form->{company_street|_address} gesetzt sind if ($form->{address} ne '') { my $temp = $form->{address}; - $temp =~ s/\\n/
/; + $temp =~ s/\n/
/; ($form->{co_street}, $form->{co_city}) = split("
", $temp); - $form->{co_city} =~ s/\\n//g; + $form->{co_city} =~ s/\n//g; } my $address_given = - ($form->{co_street} ne '' - and ( - $form->{co_zip} ne '' - or $form->{co_city} ne '' - ) - ) + ($form->{co_street} && ($form->{co_zip} || $form->{co_city})) ? qq|$form->{co_street}
| . qq|$form->{co_street1}
| . qq|$form->{co_zip} $form->{co_city}| -- 2.20.1