From 098618704aa5cc0dcf66592099789b2f76f230fa Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 31 Dec 2018 11:03:50 +0100 Subject: [PATCH] fixed logo copy --- lam/lib/pdfstruct.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/pdfstruct.inc b/lam/lib/pdfstruct.inc index 7befa3ac..ca4d3463 100644 --- a/lam/lib/pdfstruct.inc +++ b/lam/lib/pdfstruct.inc @@ -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);