X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b3ed433e388b83e055958b395ebc0e08172cd079..b0adefe1eed972a27be939b6c66aec6c3c6b2f18:/WEB-INF/lib/ttTeamHelper.class.php diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 0093e928..6920ab35 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -733,26 +733,6 @@ class ttTeamHelper { return true; } - // The getTeamDetails function returns team details. - static function getTeamDetails($group_id) { - $result = array(); - $mdb2 = getConnection(); - - $sql = "select t.name as team_name, u.id as manager_id, u.name as manager_name, u.login as manager_login, u.email as manager_email - from tt_groups t - inner join tt_users u on (u.group_id = t.id) - inner join tt_roles r on (r.id = u.role_id and r.rank = 512) - where t.id = $group_id"; - - $res = $mdb2->query($sql); - if (!is_a($res, 'PEAR_Error')) { - $val = $res->fetchRow(); - return $val; - } - - return false; - } - // The insert function creates a new team. static function insert($fields) { @@ -1120,7 +1100,7 @@ class ttTeamHelper { $plugins = implode(',', $plugin_array); if ($plugins != $user->plugins) { - if (!ttTeamHelper::update($user->group_id, array('name' => $user->team,'plugins' => $plugins))) + if (!ttTeamHelper::update($user->group_id, array('name' => $user->group,'plugins' => $plugins))) return false; $user->plugins = $plugins; }