Commit da08f6fe authored by Thomas Sibley's avatar Thomas Sibley
Browse files

Avoid "uninitialized" warnings when parsing empty templates

Empty templates are used to squash outgoing mail on a queue-by-queue
parent ed972f04
......@@ -335,7 +335,7 @@ sub Parse {
my ($rv, $msg);
if ($self->Content =~ m{^Content-Type:\s+text/html\b}im) {
if (not $self->IsEmpty and $self->Content =~ m{^Content-Type:\s+text/html\b}im) {
local $RT::Transaction::PreferredContentType = 'text/html';
($rv, $msg) = $self->_Parse(@_);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment