diff options
| author | ivan <ivan> | 2004-12-06 08:09:03 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2004-12-06 08:09:03 +0000 | 
| commit | b5ca5dd85a6b1eacdc0888aedecadb716e625ec3 (patch) | |
| tree | 4142c1445acf5e07e1ba577c75c35742f0bbfae4 | |
| parent | cce36d549b8d8cb7612f3b9a85927801de756e7e (diff) | |
fix harmless "Use of uninitialized value in length" warning in latex escapes
| -rw-r--r-- | FS/FS/cust_bill.pm | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 2755be0ae..5b5d3765d 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1256,7 +1256,7 @@ sub print_pdf {  sub _latex_escape {    my $value = shift; -  $value =~ s/([#\$%&~_\^{}])( )?/"\\$1". ( length($2) ? "\\$2" : '' )/ge; +  $value =~ s/([#\$%&~_\^{}])( )?/"\\$1". ( ( defined($2) && length($2) ) ? "\\$2" : '' )/ge;    $value;  } | 
