X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Ftimer.php;h=1fa6c137750291a96e06a21b67e079595eaf43a5;hb=00d11eaffd41616d9c4b003cc576b55187a9cf8c;hp=cdb32c7b84ae8e8952e87d59c95163f42bdbb067;hpb=058d776c118501eb510967c8b870bc346bc39e71;p=timetracker.git diff --git a/mobile/timer.php b/mobile/timer.php index cdb32c7b..1fa6c137 100644 --- a/mobile/timer.php +++ b/mobile/timer.php @@ -61,7 +61,7 @@ if ($user->isPluginEnabled('cf')) { $cl_start = trim($request->getParameter('browser_time')); $cl_finish = trim($request->getParameter('browser_time')); // Custom field. -$cl_cf_1 = trim($request->getParameter('cf_1', ($request->getMethod()=='POST'? null : @$_SESSION['cf_1']))); +$cl_cf_1 = trim($request->getParameter('cf_1', ($request->isPost() ? null : @$_SESSION['cf_1']))); $_SESSION['cf_1'] = $cl_cf_1; $cl_billable = 1; if ($user->isPluginEnabled('iv')) {