X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/ba0b5f34efabfeded3112115086eaa9d00f2a345..d9b4512fae9de17f4bc9d77c7532db6ada9bf8c3:/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.