From: Joe Hunt Date: Wed, 19 Oct 2011 07:25:57 +0000 (+0200) Subject: FA tried to print logo for new clients even if it doesn't exist. X-Git-Tag: 2.3-final~553 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e7375bdfc81ddd5e3e1ea9e53832aa966f411344;p=fa-stable.git FA tried to print logo for new clients even if it doesn't exist. --- diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 19f31d46..3ecc468e 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -66,9 +66,9 @@ // Company Logo $this->NewLine(); - if ($this->company['coy_logo'] != '') + $logo = company_path() . "/images/" . $this->company['coy_logo']; + if ($this->company['coy_logo'] != '' && file_exists($logo)) { - $logo = company_path() . "/images/" . $this->company['coy_logo']; $this->AddImage($logo, $ccol, $this->row, 0, 40); } else