X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/361a37a3308fd6db743c7dd935955728b3bfcb21..2536b717d4c7ce36e0bd2a85a6fba9e81d980955:/SL/DBUpgrade2/Base.pm diff --git a/SL/DBUpgrade2/Base.pm b/SL/DBUpgrade2/Base.pm index 100652e15..34afeae54 100644 --- a/SL/DBUpgrade2/Base.pm +++ b/SL/DBUpgrade2/Base.pm @@ -90,11 +90,9 @@ sub add_print_templates { croak "File '${src_dir}/$_' does not exist" unless -f "${src_dir}/$_"; } - my $template_dir = $::instance_conf->reload->get_templates; + return 1 unless my $template_dir = $::instance_conf->reload->get_templates; $::lxdebug->message(LXDebug::DEBUG1(), "add_print_templates: template_dir $template_dir"); - return 1 if !$template_dir; - foreach my $src_file (@files) { my $dest_file = $template_dir . '/' . $src_file;