Subject: | <TMPL_VAR> doesn't cause an error |
Template.pm, lines 1841 (the comment) and 1842 (line to replace)
# die if we need a name and didn't get one
#die "HTML::Template->new() : No NAME given to a $which tag at $fname : line $fcounter." if (!defined($name) and $need_names{$which});
die "HTML::Template->new() : No NAME given to a $which tag at $fname : line $fcounter." if ((not defined($name) or length($name)==0 ) and $need_names{$which});
It wasn't dying if I had a template which included <TMPL_VAR>,
when TMPL_VAR's require a NAME atrribute.
$name was containing '' which is defined