projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cce36d5
)
fix harmless "Use of uninitialized value in length" warning in latex escapes
author
ivan
<ivan>
Mon, 6 Dec 2004 08:09:03 +0000
(08:09 +0000)
committer
ivan
<ivan>
Mon, 6 Dec 2004 08:09:03 +0000
(08:09 +0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
2755be0
..
5b5d376
100644
(file)
--- 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;
}