summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2008-02-03 02:24:12 +0000
committerivan <ivan>2008-02-03 02:24:12 +0000
commitbf9e2e4b0dc2ae648141318142e5253173cc24e8 (patch)
tree49a906b9f53dddb8ff01329a2197a1ee193e03c7 /FS
parent76ac7f4982a27ea966c42a705011b82cddca400a (diff)
should eliminate "Use of uninitialized value in length at /usr/local/share/perl/5.8.8/FS/cust_main.pm line 5194." warnings
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 7d700972d..d3f9b877a 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -4618,8 +4618,8 @@ sub _money_table_where {
my @where = ();
push @where, "cust_main.custnum = $table.custnum" unless $opt{'total'};
if ( $table eq 'cust_bill' || $opt{'unapplied_date'} ) {
- push @where, "$table._date <= $start" if length($start);
- push @where, "$table._date > $end" if length($end);
+ push @where, "$table._date <= $start" if defined($start) && length($start);
+ push @where, "$table._date > $end" if defined($end) && length($end);
}
push @where, @{$opt{'where'}} if $opt{'where'};
my $where = scalar(@where) ? 'WHERE '. join(' AND ', @where ) : '';