diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 5c7f505..02233a5 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -140,7 +140,7 @@ sub read_contents_file { $text_insert->backward_delete($text_insert->get_length()); # If the template changes it is time to clear all the values. - if ($contents_file_tmp ne $contents_file) { + if ($contents_file_tmp && $contents_file_tmp ne $contents_file) { undef %Included; undef %replaced_by; undef %links_to;