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:
@@ -60,7 +60,9 @@ if(isset($_GET['quote_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']));
|
||||
}
|
||||
$quote_footer = $row['quote_footer'];
|
||||
|
||||
$ip = get_ip();
|
||||
@@ -279,10 +281,12 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
|
||||
// Header
|
||||
{
|
||||
columns: [
|
||||
<?php if(!empty($company_logo_base64)){ ?>
|
||||
{
|
||||
image: '<?php echo "data:image;base64,$company_logo_base64"; ?>',
|
||||
width: 120
|
||||
},
|
||||
<?php } ?>
|
||||
|
||||
[
|
||||
{
|
||||
@@ -609,4 +613,4 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
|
||||
echo "GTFO";
|
||||
} ?>
|
||||
|
||||
<?php include("guest_footer.php");
|
||||
<?php include("guest_footer.php");
|
||||
|
||||
Reference in New Issue
Block a user