Commit a9b7c1b9 authored by Shawn M Moore's avatar Shawn M Moore
Browse files

Text::Template really dislikes SOURCE => undef

parent a6f22ed8
......@@ -651,9 +651,12 @@ sub CompileCheck {
return (1, $self->loc("Template does not include Perl code"))
unless $self->Type eq 'Full';
my $content = $self->Content;
$content = '' if !defined($content);
my $template = Text::Template->new(
TYPE => 'STRING',
SOURCE => $self->Content,
SOURCE => $content,
);
$template->compile;
......
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