diff --git a/agent/invoice.php b/agent/invoice.php
index 85a6d98f..106b7765 100644
--- a/agent/invoice.php
+++ b/agent/invoice.php
@@ -247,12 +247,12 @@ if (isset($_GET['invoice_id'])) {
-
+
0 && ($invoice_status === 'Sent' || $invoice_status === 'Viewed')) { ?>
diff --git a/agent/invoices.php b/agent/invoices.php
index 2c4aa0dd..9a86a1b3 100644
--- a/agent/invoices.php
+++ b/agent/invoices.php
@@ -375,7 +375,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));