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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Marcel de Rooy 2014-03-28 09:50:11 +01:00 committed by Galen Charlton
parent c50c4d1e89
commit ca68b94c27

View file

@ -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}//'',
};
}
}