From: ivan Date: Sat, 15 Oct 2011 01:47:07 +0000 (+0000) Subject: fix for older Locale::Maketext with blank string, fallout from menu change for RT... X-Git-Tag: freeside_2_3_1~235 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2088566c2c134e95322de0de951a3fe59d5ff7b9 fix for older Locale::Maketext with blank string, fallout from menu change for RT#14695 --- diff --git a/FS/FS/Maketext.pm b/FS/FS/Maketext.pm index ccfc1204b..c90e57303 100644 --- a/FS/FS/Maketext.pm +++ b/FS/FS/Maketext.pm @@ -11,6 +11,7 @@ our @EXPORT_OK = qw( mt emt js_mt ); our $lh; sub mt { + return '' if $_[0] eq ''; $lh ||= lh(); $lh->maketext(@_); }