X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=week.php;h=c1c76f9ded0d37d492c7a7940bd7cd0784be8ab8;hb=ccaee9cc6abdbf1684b25e771b0dca35659e4a55;hp=edba8996e941f0842041fdee7ede69d970accf93;hpb=38dd91dcf8a9ecf6b7ceb73a9aabf787b96b6f6e;p=timetracker.git diff --git a/week.php b/week.php index edba8996..c1c76f9d 100644 --- a/week.php +++ b/week.php @@ -92,7 +92,7 @@ if ($user->isPluginEnabled('mq')){ require_once('plugins/MonthlyQuota.class.php'); $quota = new MonthlyQuota(); $month_quota = $quota->get($selected_date->mYear, $selected_date->mMonth); - $month_total = ttTimeHelper::getTimeForMonth($user->getUser(), $selected_date); + $month_total = ttTimeHelper::getTimeForMonth($selected_date); $minutes_left = round(60*$month_quota) - ttTimeHelper::toMinutes($month_total); $smarty->assign('month_total', $month_total); @@ -494,7 +494,7 @@ if ($request->isPost()) { } } // isPost -$week_total = ttTimeHelper::getTimeForWeek($user->getUser(), $selected_date); +$week_total = ttTimeHelper::getTimeForWeek($selected_date); $smarty->assign('selected_date', $selected_date); $smarty->assign('week_total', $week_total);