]> wagnertech.de Git - timetracker.git/blobdiff - mobile/time_edit.php
Made records with 0 duration legal.
[timetracker.git] / mobile / time_edit.php
index 452baf29d6406f9447d0dad80db45e6a13752142..d0d3f448036d744e4c7c87241b4f97618c5d3e9c 100644 (file)
@@ -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'));