X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e80e19c6b609af8e06403a337a5cd46200ab4fc6..6753e281196a94e8a50d9c98d5195093e61fcefb:/WEB-INF/lib/ttTeamHelper.class.php diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 27f31bb3..1c9e30fd 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -688,24 +688,6 @@ class ttTeamHelper { return false; } - // The getTeams function returns an array of all active teams on the server. - static function getTeams() { - $result = array(); - $mdb2 = getConnection(); - - $sql = "select id, name, created, lang from tt_teams where status = 1 order by id desc"; - $res = $mdb2->query($sql); - $result = array(); - if (!is_a($res, 'PEAR_Error')) { - while ($val = $res->fetchRow()) { - $val['date'] = substr($val['created'], 0, 10); // Strip the time. - $result[] = $val; - } - return $result; - } - return false; - } - // The markDeleted function marks the team and everything in it as deleted. static function markDeleted($team_id) {