X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=fd715a8f49416c1892f5fe61773c2ad06fcd77e5;hp=3b58a47d339263c45dca76964fb7c2fa4667e4ca;hb=8b647d5563b947f59652a66b31488c52a22156e2;hpb=ab3fff6ecf4d614e73f8f9d6a2c12511db8de371 diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 3b58a47d3..fd715a8f4 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -3038,7 +3038,10 @@ sub search { ### # parse censustract2 ### - if ( exists($params->{'censustract2'}) =~ /^(\d*)$/ ) { + if ( exists($params->{'censustract2'}) + && $params->{'censustract2'} =~ /^(\d*)$/ + ) + { if ($1) { push @where, "cust_main.censustract LIKE '$1%'"; } else {