X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b0adefe1eed972a27be939b6c66aec6c3c6b2f18..ce2bb98acb1f5e2a846f95b798a4af409c842ebb:/locking.php diff --git a/locking.php b/locking.php index 8aae756d..94996ada 100644 --- a/locking.php +++ b/locking.php @@ -51,9 +51,7 @@ if ($request->isPost()) { if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->get('error.field'), $i18n->get('label.schedule')); if ($err->no()) { - if (ttTeamHelper::update($user->group_id, array( - 'name' => $user->group, - 'lock_spec' => $cl_lock_spec))) { + if ($user->updateGroup(array('lock_spec' => $cl_lock_spec))) { header('Location: group_edit.php'); exit(); } else {