else
$sql .= 'name ';
- $sql .= "from tt_clients where group_id = $user->group_id
- and id = $client_id and (status = 1 or status = 0)";
+ $sql .= "from tt_clients where group_id = ".$user->getActiveGroup().
+ " and id = $client_id and (status = 1 or status = 0)";
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {
$val = $res->fetchRow();
$result = array();
$mdb2 = getConnection();
- $sql = "select id, name from tt_clients
- where group_id = $user->group_id and (status = 0 or status = 1) order by upper(name)";
+ $sql = "select id, name from tt_clients where group_id = ".$user->getActiveGroup()." and (status = 0 or status = 1) order by upper(name)";
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {
while ($val = $res->fetchRow()) {
$mdb2 = getConnection();
global $user;
- $sql = "select id from tt_clients where group_id = $user->group_id and name = ".
- $mdb2->quote($client_name)." and (status = 1 or status = 0)";
+ $sql = "select id from tt_clients where group_id = ".$user->getActiveGroup().
+ " and name = ".$mdb2->quote($client_name)." and (status = 1 or status = 0)";
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {
$mdb2 = getConnection();
global $user;
- $sql = "select name, address from tt_clients where group_id = $user->group_id
- and id = $client_id and status is NULL";
+ $sql = "select name, address from tt_clients where group_id = ".$user->getActiveGroup().
+ " and id = $client_id and status is NULL";
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {
$val = $res->fetchRow();
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.08.4373 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.08.4374 | 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>