Fixed comparison warning on first template load.
This commit is contained in:
parent
e0792ca8b4
commit
e024f9087f
@ -491,7 +491,7 @@ sub load_template {
|
||||
|
||||
# If caching is enabled, and the times match, the file has been loaded before
|
||||
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...
|
||||
if(open(TEMPLATE, "<:utf8", $filename)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user