X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttGroupHelper.class.php;h=6ddffaa8cf2289a896e237531e4bd1f8067e8817;hb=3fe430d82ad416d1766b9f0cd558e2e1f26900a9;hp=3fb01c604da1263cd3e1e7514953453d370b9ba3;hpb=b134135b685422ddcdc2d6856972c60ea15f661f;p=timetracker.git diff --git a/WEB-INF/lib/ttGroupHelper.class.php b/WEB-INF/lib/ttGroupHelper.class.php index 3fb01c60..6ddffaa8 100644 --- a/WEB-INF/lib/ttGroupHelper.class.php +++ b/WEB-INF/lib/ttGroupHelper.class.php @@ -30,25 +30,6 @@ // This is a planned replacement for ttTeamHelper as we move forward with subgroups. class ttGroupHelper { - // The getTopGroups function returns an array of all active top groups on the server. - static function getTopGroups() { - $result = array(); - $mdb2 = getConnection(); - - $sql = "select id, name, created, lang from tt_groups". - " where status = 1 and org_id is NULL or org_id = id 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 getGroupName function returns group name. static function getGroupName($group_id) { $mdb2 = getConnection();