diff options
| author | ivan <ivan> | 2011-02-23 23:05:05 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2011-02-23 23:05:05 +0000 | 
| commit | 765bc0f73631b147398915a2b6589617879e140f (patch) | |
| tree | 23051054baaeebbb12fe6afccf2ac2325e70e92c | |
| parent | 0ab9403d57a7b07d3f8369e5c6fe6eb0c4668b57 (diff) | |
fix harmless Argument "" isn't numeric warnings
| -rw-r--r-- | FS/FS/cust_bill.pm | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 6e48c0cc9..76727488a 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2551,8 +2551,10 @@ sub print_generic {    my $max_edate = 0;    foreach my $cust_bill_pkg ( $self->cust_bill_pkg ) {      next unless $cust_bill_pkg->pkgnum > 0; -    $min_sdate = $cust_bill_pkg->sdate if $cust_bill_pkg->sdate < $min_sdate; -    $max_edate = $cust_bill_pkg->edate if $cust_bill_pkg->edate > $max_edate; +    $min_sdate = $cust_bill_pkg->sdate +      if length($cust_bill_pkg->sdate) && $cust_bill_pkg->sdate < $min_sdate; +    $max_edate = $cust_bill_pkg->edate +      if length($cust_bill_pkg->edate) && $cust_bill_pkg->edate > $max_edate;    }    $invoice_data{'bill_period'} = '';  | 
