really reduce the noise
authorjeff <jeff>
Thu, 31 Dec 2009 02:50:40 +0000 (02:50 +0000)
committerjeff <jeff>
Thu, 31 Dec 2009 02:50:40 +0000 (02:50 +0000)
FS/FS/cust_main.pm

index 0235047..746afd7 100644 (file)
@@ -7986,10 +7986,11 @@ sub geocode {
                ? 'ship_'
                : '';
 
-  my ($zip,$plus4) = ( '', '' );
-  ($zip,$plus4) = split /-/, $self->get("${prefix}zip")
+  my($zip,$plus4) = split /-/, $self->get("${prefix}zip")
     if $self->country eq 'US';
 
+  $zip ||= '';
+  $plus4 ||= '';
   #CCH specific location stuff
   my $extra_sql = "AND plus4lo <= '$plus4' AND plus4hi >= '$plus4'";