From: Nik Okuntseff Date: Thu, 22 Mar 2018 18:23:59 +0000 (+0000) Subject: Removed unused function. X-Git-Tag: timetracker_1.19-1~976 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bcff87ad905e60d848029cf5643c8c02191ca346;p=timetracker.git Removed unused function. --- diff --git a/WEB-INF/lib/ttAdmin.class.php b/WEB-INF/lib/ttAdmin.class.php index d6b9696a..9e29eeeb 100644 --- a/WEB-INF/lib/ttAdmin.class.php +++ b/WEB-INF/lib/ttAdmin.class.php @@ -263,28 +263,4 @@ class ttAdmin { return true; } - - // setCreatedByAdmin sets created_by field for both group and its top manager to admin account. - function setCreatedByAdmin($team_id, $user_id) { - global $user; - $mdb2 = getConnection(); - - // Update created_by for group. - $sql = "update tt_teams set created_by = $user->id where id = $team_id"; - $affected = $mdb2->exec($sql); - if (is_a($affected, 'PEAR_Error')) { - $this->err->add($i18n->getKey('error.db')); - return false; - } - - // Update created_by for top manager. - $sql = "update tt_users set created_by = $user->id where id = $user_id"; - $affected = $mdb2->exec($sql); - if (is_a($affected, 'PEAR_Error')) { - $this->err->add($i18n->getKey('error.db')); - return false; - } - - return true; - } } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f9d1e927..9427fe9d 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.65.4133 | Copyright © Anuko | +  Anuko Time Tracker 1.17.65.4134 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}