diff --git a/guest/guest_post.php b/guest/guest_post.php
index f18c3fef..88fccbaa 100644
--- a/guest/guest_post.php
+++ b/guest/guest_post.php
@@ -284,14 +284,11 @@ if (isset($_GET['export_quote_pdf'])) {
$pdf->SetFont('helvetica', '', 10);
// Logo + Right Columns
- $html = '
+ $html = '
';
- if (!empty($company_logo)) {
- $logo_path = "../uploads/settings/$company_logo";
- if (file_exists($logo_path)) {
- $pdf->Image($logo_path, $pdf->GetX(), $pdf->GetY(), 40);
- }
+ if (!empty($company_logo) && file_exists("../uploads/settings/$company_logo")) {
+ $html .= ' ';
}
$html .= ' |
@@ -305,7 +302,7 @@ if (isset($_GET['export_quote_pdf'])) {
}
$html .= ' |
-
';
+
';
// Billing titles
$html .= '
@@ -320,7 +317,7 @@ if (isset($_GET['export_quote_pdf'])) {
';
// Date table
- $html .= '
+ $html .= '
|
Date: |
@@ -510,14 +507,11 @@ if (isset($_GET['export_invoice_pdf'])) {
$pdf->SetFont('helvetica', '', 10);
// Logo + Right Columns
- $html = '
+ $html = '
';
- if (!empty($company_logo)) {
- $logo_path = "../uploads/settings/$company_logo";
- if (file_exists($logo_path)) {
- $pdf->Image($logo_path, $pdf->GetX(), $pdf->GetY(), 40);
- }
+ if (!empty($company_logo) && file_exists("../uploads/settings/$company_logo")) {
+ $html .= ' ';
}
$html .= ' |
@@ -528,7 +522,7 @@ if (isset($_GET['export_invoice_pdf'])) {
}
$html .= ' |
-
';
+
';
// Billing titles
$html .= '
@@ -543,7 +537,7 @@ if (isset($_GET['export_invoice_pdf'])) {
';
// Date table
- $html .= '
+ $html .= '
|
Date: |
diff --git a/post/user/invoice.php b/post/user/invoice.php
index d41283a2..2cc535e9 100644
--- a/post/user/invoice.php
+++ b/post/user/invoice.php
@@ -1914,14 +1914,11 @@ if (isset($_GET['export_invoice_pdf'])) {
$pdf->SetFont('helvetica', '', 10);
// Logo + Right Columns
- $html = '
+ $html = '
';
- if (!empty($company_logo)) {
- $logo_path = "uploads/settings/$company_logo";
- if (file_exists($logo_path)) {
- $pdf->Image($logo_path, $pdf->GetX(), $pdf->GetY(), 40);
- }
+ if (!empty($company_logo) && file_exists("uploads/settings/$company_logo")) {
+ $html .= ' ';
}
$html .= ' |
@@ -1932,7 +1929,7 @@ if (isset($_GET['export_invoice_pdf'])) {
}
$html .= ' |
-
';
+
';
// Billing titles
$html .= '
@@ -1947,7 +1944,7 @@ if (isset($_GET['export_invoice_pdf'])) {
';
// Date table
- $html .= '
+ $html .= '
|
Date: |
diff --git a/post/user/quote.php b/post/user/quote.php
index 8266b1eb..96ecb4c1 100644
--- a/post/user/quote.php
+++ b/post/user/quote.php
@@ -694,14 +694,11 @@ if (isset($_GET['export_quote_pdf'])) {
$pdf->SetFont('helvetica', '', 10);
// Logo + Right Columns
- $html = '
+ $html = '
';
- if (!empty($company_logo)) {
- $logo_path = "uploads/settings/$company_logo";
- if (file_exists($logo_path)) {
- $pdf->Image($logo_path, $pdf->GetX(), $pdf->GetY(), 40);
- }
+ if (!empty($company_logo) && file_exists("uploads/settings/$company_logo")) {
+ $html .= ' ';
}
$html .= ' |
@@ -715,7 +712,7 @@ if (isset($_GET['export_quote_pdf'])) {
}
$html .= ' |
-
';
+
';
// Billing titles
$html .= '
@@ -730,7 +727,7 @@ if (isset($_GET['export_quote_pdf'])) {
';
// Date table
- $html .= '