X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1fad211ab12fc66117094e33425f8414fccd2cfa..a7ba11adfecf6cb906749efe5abce688363aef07:/time.php diff --git a/time.php b/time.php index b01cd944..b7ea5726 100644 --- 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.