X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/95356f167c97ca1a70fc78d91a9dbc7b1d258b31..3b5e01059ad07bfc7ef7c07ba235a73a92ddc3f3:/quotas.php diff --git a/quotas.php b/quotas.php index a453099e..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->group,'workday_minutes'=>$workday_minutes))) + if (!$user->updateGroup(array('workday_minutes'=>$workday_minutes))) $err->add($i18n->get('error.db')); }