]> wagnertech.de Git - timetracker.git/blobdiff - client_delete.php
Siwtched to using isPost() function
[timetracker.git] / client_delete.php
index cdc20b6fbe9f270ad8736fdd793a54420246f317..e566455a86de0669633ae99d936bdb539eddc1d0 100644 (file)
@@ -48,7 +48,7 @@ $form->addInput(array('type'=>'combobox','name'=>'delete_client_entries',
 $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(ttClientHelper::getClient($id)) {
     if ($request->getParameter('btn_delete')) {
       if (ttClientHelper::delete($id, $request->getParameter('delete_client_entries'))) {