mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Fix #180 - No Company logo breaks Invoice/Quotes
This commit is contained in:
@@ -61,7 +61,9 @@ if(isset($_GET['invoice_id'], $_GET['url_key'])){
|
||||
}
|
||||
$company_email = $row['company_email'];
|
||||
$company_logo = $row['company_logo'];
|
||||
$company_logo_base64 = base64_encode(file_get_contents($row['company_logo']));
|
||||
if(!empty($company_logo)){
|
||||
$company_logo_base64 = base64_encode(file_get_contents($row['company_logo']));
|
||||
}
|
||||
$config_invoice_footer = $row['config_invoice_footer'];
|
||||
$config_stripe_enable = $row['config_stripe_enable'];
|
||||
$config_stripe_publishable = $row['config_stripe_publishable'];
|
||||
@@ -533,10 +535,12 @@ if(isset($_GET['invoice_id'], $_GET['url_key'])){
|
||||
// Header
|
||||
{
|
||||
columns: [
|
||||
<?php if(!empty($company_logo_base64)){ ?>
|
||||
{
|
||||
image: '<?php echo "data:image;base64,$company_logo_base64"; ?>',
|
||||
width: 120
|
||||
},
|
||||
<?php } ?>
|
||||
|
||||
[
|
||||
{
|
||||
@@ -911,4 +915,4 @@ if(isset($_GET['invoice_id'], $_GET['url_key'])){
|
||||
}
|
||||
?>
|
||||
|
||||
<?php include("guest_footer.php"); ?>
|
||||
<?php include("guest_footer.php"); ?>
|
||||
|
||||
Reference in New Issue
Block a user