X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b4b57ea6a41c263250715f72248d48eae22f5476..a7ba11adfecf6cb906749efe5abce688363aef07:/user_delete.php diff --git a/user_delete.php b/user_delete.php index 079c1140..8ea639c6 100644 --- a/user_delete.php +++ b/user_delete.php @@ -63,7 +63,7 @@ $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$user_id)); $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 (ttUserHelper::markDeleted($user_id)) { // If we deleted the "on behalf" user reset its info in session.