X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4644ff57154cc72fdf7f4555b2750d2c9a680efb..3c857ca72d35f70449f20f1156ab35db92f84828:/mobile/timer.php diff --git a/mobile/timer.php b/mobile/timer.php index 1fa6c137..95790311 100644 --- a/mobile/timer.php +++ b/mobile/timer.php @@ -200,7 +200,7 @@ if ($request->isPost()) { // Finished validating user input. // Prohibit creating entries in future. - if (defined('FUTURE_ENTRIES') && !isTrue(FUTURE_ENTRIES)) { + if (!$user->future_entries) { $browser_today = new DateAndTime(DB_DATEFORMAT, $request->getParameter('browser_today', null)); if ($selected_date->after($browser_today)) $err->add($i18n->getKey('error.future_date'));