X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..6cae57e56590e859655bde42058a8bddac7b594e:/invoice_add.php diff --git a/invoice_add.php b/invoice_add.php index 347f6b43..0efc99ee 100644 --- a/invoice_add.php +++ b/invoice_add.php @@ -86,10 +86,11 @@ if ($request->isPost()) { if (ttInvoiceHelper::createInvoice($fields)) { header('Location: invoices.php'); exit(); - } + } else { $err->add($i18n->getKey('error.db')); + } } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');