From b5ca5dd85a6b1eacdc0888aedecadb716e625ec3 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 6 Dec 2004 08:09:03 +0000 Subject: [PATCH] fix harmless "Use of uninitialized value in length" warning in latex escapes --- FS/FS/cust_bill.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0