X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time_edit.php;h=d486d652462c116a168e3a2a4af2ba87dbd83c2d;hb=5305983d1ea26da9859eb1d4b54cb9a334c4ca6b;hp=b509fcf9f9b8079d94a2046d36bb7d92f9eea99f;hpb=19f245ff861895c99c3f04fbc53404564bb44267;p=timetracker.git diff --git a/time_edit.php b/time_edit.php index b509fcf9..d486d652 100644 --- a/time_edit.php +++ b/time_edit.php @@ -95,7 +95,7 @@ if ($request->isPost()) { $cl_billable = $time_rec['billable']; // Add an info message to the form if we are editing an uncompleted record. - if (($cl_start == $cl_finish) && ($cl_duration == '0:00')) { + if (strlen($cl_start) > 0 && $cl_start == $cl_finish && $cl_duration == '0:00') { $cl_finish = ''; $cl_duration = ''; $msg->add($i18n->getKey('form.time_edit.uncompleted'));