]> wagnertech.de Git - timetracker.git/blobdiff - cf_dropdown_option_add.php
Siwtched to using isPost() function
[timetracker.git] / cf_dropdown_option_add.php
index c1fa7e00bf76885a67b49465f05e74090f9ddbb5..7feae8a4589d24717cd1e26d70394305971d4459 100644 (file)
@@ -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.