diff --git a/invoice.php b/invoice.php index 70dffe0d..6294a33a 100644 --- a/invoice.php +++ b/invoice.php @@ -26,7 +26,12 @@ if (isset($_GET['invoice_id'])) { ); if (mysqli_num_rows($sql) == 0) { - echo '

Nothing to see here

'; + if (isset($_GET['client_id'])) { + $backlink_append = "?client_id=$client_id"; + } else { + $backlink_append = ''; + } + echo "

There is no Invoice here
Back to Invoices

"; require_once "includes/footer.php"; exit(); @@ -280,6 +285,10 @@ if (isset($_GET['invoice_id'])) { Cancel + + + Delete + diff --git a/recurring_invoice.php b/recurring_invoice.php index 77419bfb..07aadd95 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -21,6 +21,18 @@ if (isset($_GET['recurring_invoice_id'])) { WHERE recurring_invoice_id = $recurring_invoice_id LIMIT 1" ); + if (mysqli_num_rows($sql) == 0) { + if (isset($_GET['client_id'])) { + $backlink_append = "?client_id=$client_id"; + } else { + $backlink_append = ''; + } + echo "

There is no Recurring Invoice here
Back to Recurring Invoices

"; + require_once "includes/footer.php"; + + exit(); + } + $row = mysqli_fetch_array($sql); $recurring_invoice_prefix = nullable_htmlentities($row['recurring_invoice_prefix']); $recurring_invoice_number = intval($row['recurring_invoice_number']);