freeside/FS/FS cust_bill.pm,1.99,1.100
ivan
ivan at pouncequick.420.am
Mon Dec 6 00:09:06 PST 2004
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv13737
Modified Files:
cust_bill.pm
Log Message:
fix harmless "Use of uninitialized value in length" warning in latex escapes
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- cust_bill.pm 11 Aug 2004 23:56:52 -0000 1.99
+++ cust_bill.pm 6 Dec 2004 08:09:03 -0000 1.100
@@ -1256,7 +1256,7 @@
sub _latex_escape {
my $value = shift;
- $value =~ s/([#\$%&~_\^{}])( )?/"\\$1". ( length($2) ? "\\$2" : '' )/ge;
+ $value =~ s/([#\$%&~_\^{}])( )?/"\\$1". ( ( defined($2) && length($2) ) ? "\\$2" : '' )/ge;
$value;
}
More information about the freeside-commits
mailing list