]> wagnertech.de Git - timetracker.git/blobdiff - time.php
Siwtched to using isPost() function
[timetracker.git] / time.php
index b01cd9448e3af083d12ead44af7c976036195153..b7ea572604878616ca9c90032ed1a87f4fb15fcc 100644 (file)
--- a/time.php
+++ b/time.php
@@ -73,7 +73,7 @@ $cl_cf_1 = trim($request->getParameter('cf_1', ($request->getMethod()=='POST'? n
 $_SESSION['cf_1'] = $cl_cf_1;
 $cl_billable = 1;
 if (in_array('iv', explode(',', $user->plugins))) {
-  if ($request->getMethod() == 'POST') {
+  if ($request->isPost()) {
     $cl_billable = $request->getParameter('billable');
     $_SESSION['billable'] = (int) $cl_billable;
   } else 
@@ -213,7 +213,7 @@ if ($lock_interval > 0) {
 }
 
 // Submit.
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   if ($request->getParameter('btn_submit')) {
 
     // Validate user input.