X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b4b57ea6a41c263250715f72248d48eae22f5476..a7ba11adfecf6cb906749efe5abce688363aef07:/cf_dropdown_option_add.php diff --git a/cf_dropdown_option_add.php b/cf_dropdown_option_add.php index c1fa7e00..7feae8a4 100644 --- a/cf_dropdown_option_add.php +++ b/cf_dropdown_option_add.php @@ -48,7 +48,7 @@ if ($errors->no()) { $form->addInput(array('type'=>'submit','name'=>'btn_add','value'=>$i18n->getKey('button.add'))); } -if ($request->getMethod() == 'POST') { +if ($request->isPost()) { $cl_option_name = trim($request->getParameter('name')); // Validate user input.