X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/098a79f0819ebb89b7d48df4a6b154af4560f68e..387db9f30e6a45e1f25052af26c23ecdd1748e3a:/invoice_delete.php diff --git a/invoice_delete.php b/invoice_delete.php index 9fb7c435..4f9ed242 100644 --- a/invoice_delete.php +++ b/invoice_delete.php @@ -54,7 +54,7 @@ if ($request->getMethod() == 'POST') { if (ttInvoiceHelper::getInvoice($cl_invoice_id)) { if (ttInvoiceHelper::delete($cl_invoice_id, $request->getParameter('delete_invoice_entries'))) { header('Location: invoices.php'); - exit(); + exit(); } else $errors->add($i18n->getKey('error.db')); } else @@ -63,7 +63,7 @@ if ($request->getMethod() == 'POST') { header('Location: invoices.php'); exit(); } -} // post +} // POST $smarty->assign('invoice_to_delete', $invoice_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray())); @@ -71,4 +71,3 @@ $smarty->assign('onload', 'onLoad="document.invoiceDeleteForm.btn_cancel.focus() $smarty->assign('title', $i18n->getKey('title.delete_invoice')); $smarty->assign('content_page_name', 'invoice_delete.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file