X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=quotas.php;h=8381c3b6a3185b76d6ccf4fe351f4c1c6b32b07c;hb=d6a5ffec0f76b9ab5b1ee4f8e69ecdb2afd7c0ff;hp=8e6f59c4d54514314ed95b4c01aa9ce683c33c5f;hpb=45c855269d952873285f7a835e82fc2b3eff3971;p=timetracker.git diff --git a/quotas.php b/quotas.php index 8e6f59c4..8381c3b6 100644 --- a/quotas.php +++ b/quotas.php @@ -29,7 +29,6 @@ require_once('initialize.php'); require_once('plugins/MonthlyQuota.class.php'); import('form.Form'); -import('ttTeamHelper'); import('ttTimeHelper'); // Access checks. @@ -90,7 +89,7 @@ if ($request->isPost()){ // Handle workday hours. $workday_minutes = ttTimeHelper::postedDurationToMinutes($request->getParameter('workdayHours')); if ($workday_minutes != $user->workday_minutes) { - if (!ttTeamHelper::update($user->group_id, array('name'=>$user->team,'workday_minutes'=>$workday_minutes))) + if (!$user->updateGroup(array('workday_minutes'=>$workday_minutes))) $err->add($i18n->get('error.db')); }