From ca68b94c276d34e7bdf8ea5ceee26602379c4ebc Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 28 Mar 2014 09:50:11 +0100 Subject: [PATCH] Bug 9016: (QA Follow-up) Remove warning from content.length test If the letter.content is undef, the content.length test in the letter template will trigger warning: Argument "" isn't numeric in numeric gt (>). This patch eliminates that warning. Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton --- tools/letter.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/letter.pl b/tools/letter.pl index 789efccd53..06666de6f8 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -187,7 +187,7 @@ sub add_form { message_transport_type => $mtt, is_html => $letters->{$mtt}{is_html}, title => $letters->{$mtt}{title}, - content => $letters->{$mtt}{content}, + content => $letters->{$mtt}{content}//'', }; } } -- 2.11.4.GIT