X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/bf5ddc4f34213ffe75d6d601c16148a3fe506455..f58cc6f6d6403f4eb01e4f6dfa4058afc927970c:/mobile/time.php diff --git a/mobile/time.php b/mobile/time.php index 0c634f3a..2b1f8395 100644 --- a/mobile/time.php +++ b/mobile/time.php @@ -218,7 +218,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'));