X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e55571e568f9653c94860ab308cd781e20d13eb..c9ab657042ee613e3e2b896c8cf381fee7dd3ff5:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index 0d50381d..264fc379 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1042,13 +1042,13 @@ if ($_POST) { if ($_POST["cleanup"]) { $mdb2 = getConnection(); - $inactive_groups = ttOrgHelper::getInactiveOrgs(); + $inactive_orgs = ttOrgHelper::getInactiveOrgs(); - $count = count($inactive_groups); - print "$count inactive groups found...
\n"; + $count = count($inactive_orgs); + print "$count inactive organizations found...
\n"; for ($i = 0; $i < $count; $i++) { - print " deleting group ".$inactive_groups[$i]."
\n"; - $res = ttTeamHelper::delete($inactive_groups[$i]); // TODO: rewrite this to delete subgroups, too. + print " deleting organization ".$inactive_orgs[$i]."
\n"; + $res = ttOrgHelper::deleteOrg($inactive_orgs[$i]); } setChange("OPTIMIZE TABLE tt_client_project_binds");