fixed logo copy

This commit is contained in:
Roland Gruber 2018-12-31 11:03:50 +01:00
parent fc24f4a2aa
commit 098618704a
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ function installPDFTemplates() {
$entry = $templateDir->read();
while ($entry){
$path = $basePath . '/logos/' . $entry;
if ((strpos($entry, '.') !== 1) && !is_file($path)) {
if ((strpos($entry, '.') !== 0) && !is_file($path)) {
$template = $templatePath . '/' . $entry;
logNewMessage(LOG_DEBUG, 'Copy template ' . $template . ' to ' . $path);
@copy($template, $path);