fix warning
authorMark Wells <mark@freeside.biz>
Wed, 16 Nov 2016 22:08:09 +0000 (14:08 -0800)
committerMark Wells <mark@freeside.biz>
Wed, 16 Nov 2016 22:11:58 +0000 (14:11 -0800)
FS/FS/Misc/Geo.pm

index 92490bb..6b3d6ca 100644 (file)
@@ -210,13 +210,13 @@ sub wa_sales {
         if ( lc($text) eq 'location code' ) {
           $p->get_tag('td'); # skip to the next column
           undef $u;
-          $u = $p->get_token until $u->[0] eq 'T'; # and then skip non-text
+          $u = $p->get_token until ($u->[0] || '') eq 'T'; # and then skip non-text
           $return->{'district'} = $u->[1];
         }
         elsif ( lc($text) eq 'total tax rate' ) {
           $p->get_tag('td');
           undef $u;
-          $u = $p->get_token until $u->[0] eq 'T';
+          $u = $p->get_token until ($u->[0] || '') eq 'T';
           $return->{'tax'} = $u->[1];
         }
       } # get_token