X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=week.php;h=f18817d7d298e9fcf1b5e922eac43d7932426e0e;hb=8dade986970598d2c58e2484342e413bf30be4db;hp=c1c76f9ded0d37d492c7a7940bd7cd0784be8ab8;hpb=54bb71ed8e6b7f79e3b26bc1c8a70a95793950c8;p=timetracker.git diff --git a/week.php b/week.php index c1c76f9d..f18817d7 100644 --- a/week.php +++ b/week.php @@ -91,9 +91,9 @@ if ($user->isPluginEnabled('cf')) { if ($user->isPluginEnabled('mq')){ require_once('plugins/MonthlyQuota.class.php'); $quota = new MonthlyQuota(); - $month_quota = $quota->get($selected_date->mYear, $selected_date->mMonth); + $month_quota_minutes = $quota->getUserQuota($selected_date->mYear, $selected_date->mMonth); $month_total = ttTimeHelper::getTimeForMonth($selected_date); - $minutes_left = round(60*$month_quota) - ttTimeHelper::toMinutes($month_total); + $minutes_left = $month_quota_minutes - ttTimeHelper::toMinutes($month_total); $smarty->assign('month_total', $month_total); $smarty->assign('over_quota', $minutes_left < 0);