X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5acb933e804db8f3ff7c71e66ef99ea95520547e..a8ef8ed3ff0aca2d4429b08cc7ff37bd273f4547:/time.php diff --git a/time.php b/time.php index 4042d7c5..63290a69 100644 --- a/time.php +++ b/time.php @@ -71,7 +71,8 @@ if ($user->isPluginEnabled('mq')){ $minutesLeft = ttTimeHelper::toMinutes($monthlyQuota) - ttTimeHelper::toMinutes($month_total); $smarty->assign('month_total', $month_total); - $smarty->assign('month_left', ttTimeHelper::fromMinutes($minutesLeft)); + $smarty->assign('over_quota', $minutesLeft < 0); + $smarty->assign('month_left', ttTimeHelper::toAbsDuration($minutesLeft)); } // Initialize variables.