Siwtched to using isPost() function
[timetracker.git] / cf_dropdown_option_edit.php
index 4c5fc4a..0f47e18 100644 (file)
@@ -48,7 +48,7 @@ if ($errors->no()) {
   $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey('button.save')));
 }
 
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   $cl_name = trim($request->getParameter('name'));
 
   // Validate user input.