X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=dbinstall.php;h=264fc379d229f113d62557a73f0ddf3ee51ed48a;hb=80d8ba7ca7444b575edc4930ee45e46dca66144b;hp=0d50381ddb3f26e7badbe099c3ff1f9bc095c20e;hpb=f5a86ad6b1e247ff6bd83d12fb1f4cfdce581192;p=timetracker.git 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");