X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/19f245ff861895c99c3f04fbc53404564bb44267..5fc92be03ffe638202a305292f2427e5f83b307e:/time_edit.php 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'));