From dc5dc78e53475317cd5b2bd5a8a4fe35e73bb278 Mon Sep 17 00:00:00 2001 From: bMancone Date: Tue, 7 Feb 2012 15:22:52 +0000 Subject: [PATCH] // Fixed getLogo() --- classes/pdf/HTMLTemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/pdf/HTMLTemplate.php b/classes/pdf/HTMLTemplate.php index 75e3b2269..593dc9af3 100755 --- a/classes/pdf/HTMLTemplate.php +++ b/classes/pdf/HTMLTemplate.php @@ -104,9 +104,9 @@ abstract class HTMLTemplateCore { $logo = ''; - if (file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_INVOICE'))) + if (Configuration::get('PS_LOGO_INVOICE') != false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_INVOICE'))) $logo = _PS_IMG_.Configuration::get('PS_LOGO_INVOICE'); - else if (file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO'))) + else if (Configuration::get('PS_LOGO') != false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO'))) $logo = _PS_IMG_.Configuration::get('PS_LOGO'); return $logo;