X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Ftimer.php;h=1fa6c137750291a96e06a21b67e079595eaf43a5;hb=294895b702e4c5cb5bfc87292c464bed201f296b;hp=8a82bb6d9bc3a047b26eb4cb58efad1b7cd53fb7;hpb=2b33db994ef8ee17de49df35afac00e4b1a6d45b;p=timetracker.git diff --git a/mobile/timer.php b/mobile/timer.php index 8a82bb6d..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')) { @@ -155,7 +155,7 @@ if (MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { 'empty'=>array(''=>$i18n->getKey('dropdown.select')))); } if ($user->isPluginEnabled('iv')) - $form->addInput(array('type'=>'checkbox','name'=>'billable','data'=>1,'value'=>$cl_billable,'enable'=>$enable_controls)); + $form->addInput(array('type'=>'checkbox','name'=>'billable','value'=>$cl_billable,'enable'=>$enable_controls)); $form->addInput(array('type'=>'hidden','name'=>'browser_today','value'=>'')); // User current date, which gets filled in on button click. $form->addInput(array('type'=>'hidden','name'=>'browser_time','value'=>'')); // User current time, which gets filled in on button click. $enable_start = $uncompleted ? false : true;