From 68251c5f18da994f607ba6e29e48eba70afdc324 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Fri, 19 Oct 2018 15:25:53 -0400 Subject: [PATCH] Only add type when sensible --- createdatabase.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createdatabase.PL b/createdatabase.PL index e21a828..cf3d954 100755 --- a/createdatabase.PL +++ b/createdatabase.PL @@ -1136,7 +1136,7 @@ if(my $oa = $ENV{'OPENADDR_HOME'}) { if($post_code) { $post_code = uc($post_code); } - if(my $type = $c{'street_type'}) { + if($c{'street_name'} && (my $type = $c{'street_type'})) { $c{'street_name'} .= " $type"; } if($number && ($c{'property_identifier'} ne $number)) {