X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4426ed3bc8e53d5013d356505283c916e3826392..a7ba11adfecf6cb906749efe5abce688363aef07:/invoice_delete.php diff --git a/invoice_delete.php b/invoice_delete.php index 4f9ed242..89f132d4 100644 --- a/invoice_delete.php +++ b/invoice_delete.php @@ -49,7 +49,7 @@ $form->addInput(array('type'=>'combobox', $form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->getKey('label.delete'))); $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getKey('button.cancel'))); -if ($request->getMethod() == 'POST') { +if ($request->isPost()) { if ($request->getParameter('btn_delete')) { if (ttInvoiceHelper::getInvoice($cl_invoice_id)) { if (ttInvoiceHelper::delete($cl_invoice_id, $request->getParameter('delete_invoice_entries'))) {