File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -664,9 +664,9 @@ static function getInactiveGroups() {
664664 $ inactive_groups = array ();
665665 $ mdb2 = getConnection ();
666666
667- // Get all group ids for groups created or modified more than 8 months ago.
667+ // Get all group ids for groups created or modified more than 9 months ago.
668668 // $ts = date('Y-m-d', strtotime('-1 year'));
669- $ ts = $ mdb2 ->quote (date ('Y-m-d ' , strtotime ('-8 month ' )));
669+ $ ts = $ mdb2 ->quote (date ('Y-m-d ' , strtotime ('-9 month ' )));
670670 $ sql = "select id from tt_groups where created < $ ts and (modified is null or modified < $ ts) order by id " ;
671671 $ res = $ mdb2 ->query ($ sql );
672672
Original file line number Diff line number Diff line change 1212 <br >
1313 <table cellspacing =" 0" cellpadding =" 4" width =" 100%" border =" 0" >
1414 <tr >
15- <td align =" center" >  ; Anuko Time Tracker 1.17.89.4269 | Copyright © ; <a href =" https://www.anuko.com/lp/tt_3.htm" target =" _blank" >Anuko</a > |
15+ <td align =" center" >  ; Anuko Time Tracker 1.17.89.4270 | Copyright © ; <a href =" https://www.anuko.com/lp/tt_3.htm" target =" _blank" >Anuko</a > |
1616 <a href =" https://www.anuko.com/lp/tt_4.htm" target =" _blank" >{ $i18n .footer.credits} </a > |
1717 <a href =" https://www.anuko.com/lp/tt_5.htm" target =" _blank" >{ $i18n .footer.license} </a > |
1818 <a href =" https://www.anuko.com/lp/tt_7.htm" target =" _blank" >{ $i18n .footer.improve} </a >
Original file line number Diff line number Diff line change @@ -904,13 +904,13 @@ function setChange($sql) {
904904 if ($ _POST ["cleanup " ]) {
905905
906906 $ mdb2 = getConnection ();
907- $ inactive_teams = ttTeamHelper::getInactiveGroups ();
907+ $ inactive_groups = ttTeamHelper::getInactiveGroups ();
908908
909- $ count = count ($ inactive_teams );
910- print "$ count inactive teams found...<br> \n" ;
909+ $ count = count ($ inactive_groups );
910+ print "$ count inactive groups found...<br> \n" ;
911911 for ($ i = 0 ; $ i < $ count ; $ i ++) {
912- print " deleting team " .$ inactive_teams [$ i ]."<br> \n" ;
913- $ res = ttTeamHelper::delete ($ inactive_teams [$ i ]);
912+ print " deleting group " .$ inactive_groups [$ i ]."<br> \n" ;
913+ $ res = ttTeamHelper::delete ($ inactive_groups [$ i ]);
914914 }
915915
916916 setChange ("OPTIMIZE TABLE tt_client_project_binds " );
You can’t perform that action at this time.
0 commit comments