aboutsummaryrefslogtreecommitdiff
path: root/include/offers-overview.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r--include/offers-overview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php
index 65aea29..090a036 100644
--- a/include/offers-overview.php
+++ b/include/offers-overview.php
@@ -73,11 +73,11 @@ require_once(__DIR__ . '/../login.php');
</table>
</td>
<td class='col-min-width'>"
- . (($invoiceFile instanceof file)
+ . ((!is_null($invoiceFile))
? "<a title='View' href='{$invoiceFile->getFilenameURI()}' target='_blank' class='btn btn-default btn-circle fa fa-eye'></a>
<a title='Regenerate' href='?generate_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-refresh'></a>
<a title='Trash' href='?trash_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-trash'></a>"
- : "<a title='Create invoice' href='?generate_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-calculator'></a>")
+ : "<a title='Generate invoice' href='?generate_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-calculator'></a>")
. "<br/>
<table>
<tr>