X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5ef582473f6b329be18ad83c61e053fdcd9c6ed5..a7ba11adfecf6cb906749efe5abce688363aef07:/admin_team_delete.php diff --git a/admin_team_delete.php b/admin_team_delete.php index 2ef09838..5cb2e854 100644 --- a/admin_team_delete.php +++ b/admin_team_delete.php @@ -45,7 +45,7 @@ $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$team_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 (ttTeamHelper::markDeleted($team_id)) { header('Location: admin_teams.php'); @@ -58,8 +58,8 @@ if ($request->getMethod() == 'POST') { header('Location: admin_teams.php'); exit(); } -} - +} // POST + $smarty->assign('team_to_delete', $team_name); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.delete_team'));