summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-08-18 21:27:52 +0000
committerivan <ivan>2011-08-18 21:27:52 +0000
commit613464e6e7b634586bca9fabac145d2850b0f0f7 (patch)
tree559aeaf3702f4d88a9173237e6d03e0d5eae4a50 /FS
parentab71884fcb626cfab8c62fd6d9db485e36495e14 (diff)
fix 477 reporting w/multiple classnums, RT#13922
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_pkg.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 468e0ebc6..44c103f7e 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -3044,7 +3044,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 {