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;
- }
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.65.4133 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.65.4134 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>