Fixed comparison warning on first template load.

This commit is contained in:
Chris 2012-09-05 12:05:52 +01:00
parent e0792ca8b4
commit e024f9087f

View File

@ -491,7 +491,7 @@ sub load_template {
# If caching is enabled, and the times match, the file has been loaded before # If caching is enabled, and the times match, the file has been loaded before
return $self -> process_template($self -> {"cache"} -> {$name} -> {"template"}, $varmap, $nocharfix) return $self -> process_template($self -> {"cache"} -> {$name} -> {"template"}, $varmap, $nocharfix)
if($self -> {"usecache"} && $self -> {"cache"} -> {$name} -> {"mtime"} == $filemtime); if($self -> {"usecache"} && $self -> {"cache"} -> {$name} && $self -> {"cache"} -> {$name} -> {"mtime"} == $filemtime);
# Try the load and process the template... # Try the load and process the template...
if(open(TEMPLATE, "<:utf8", $filename)) { if(open(TEMPLATE, "<:utf8", $filename)) {