X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/bf5ddc4f34213ffe75d6d601c16148a3fe506455..f58cc6f6d6403f4eb01e4f6dfa4058afc927970c:/time.php diff --git a/time.php b/time.php index 27d3cdbe..11f95c49 100644 --- a/time.php +++ b/time.php @@ -253,7 +253,7 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.empty'), $i18n->getKey('label.duration')); } } else { - if (!ttTimeHelper::isValidDuration($cl_duration)) + if (false === ttTimeHelper::postedDurationToMinutes($cl_duration)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.duration')); } if (!ttValidString($cl_note, true)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.note'));