if (is_a($result, 'PEAR_Error')) die($result->getMessage());
$row = $result->fetchRow();
if ($row['count'] == 0)
- ttRoleHelper::createPredefinedRoles($team_id, $lang);
+ ttRoleHelper::createPredefinedRoles_1_17_44($team_id, $lang);
// Obtain new role id based on legacy role.
- $role_id = ttRoleHelper::getRoleByRank($legacy_role, $team_id);
+ $role_id = ttRoleHelper::getRoleByRank_1_17_44($legacy_role, $team_id);
if (!$role_id) continue; // Role not found, nothing to do.
$sql = "update tt_users set role_id = $role_id where id = $user_id and team_id = $team_id";
if ($_POST["cleanup"]) {
$mdb2 = getConnection();
- $inactive_teams = ttTeamHelper::getInactiveGroups();
+ $inactive_groups = ttTeamHelper::getInactiveGroups();
- $count = count($inactive_teams);
- print "$count inactive teams found...<br>\n";
+ $count = count($inactive_groups);
+ print "$count inactive groups found...<br>\n";
for ($i = 0; $i < $count; $i++) {
- print " deleting team ".$inactive_teams[$i]."<br>\n";
- $res = ttTeamHelper::delete($inactive_teams[$i]);
+ print " deleting group ".$inactive_groups[$i]."<br>\n";
+ $res = ttTeamHelper::delete($inactive_groups[$i]);
}
setChange("OPTIMIZE TABLE tt_client_project_binds");