X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a7ba11adfecf6cb906749efe5abce688363aef07..6cae57e56590e859655bde42058a8bddac7b594e:/mobile/time_delete.php diff --git a/mobile/time_delete.php b/mobile/time_delete.php index 16833025..9e818e78 100644 --- a/mobile/time_delete.php +++ b/mobile/time_delete.php @@ -70,10 +70,10 @@ if ($request->isPost()) { $uncompleted = ($time_rec['duration'] == '0:00'); if($lockdate && $item_date->before($lockdate) && !$uncompleted) { - $errors->add($i18n->getKey('error.period_locked')); + $err->add($i18n->getKey('error.period_locked')); } - if ($errors->no()) { + if ($err->no()) { // Delete the record. $result = ttTimeHelper::delete($cl_id, $user->getActiveUser()); @@ -82,7 +82,7 @@ if ($request->isPost()) { header('Location: time.php'); exit(); } else { - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); } } } @@ -90,7 +90,7 @@ if ($request->isPost()) { header('Location: time.php'); exit(); } -} // POST +} // isPost $form = new Form('timeRecordForm'); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));