diff --git a/agc_2-X/branches/agc_2.2.0/www/vicidial/AST_agent_timeclock_detail.php b/agc_2-X/branches/agc_2.2.0/www/vicidial/AST_agent_timeclock_detail.php
index e8d0b8b8..e3d7b036 100644
--- a/agc_2-X/branches/agc_2.2.0/www/vicidial/AST_agent_timeclock_detail.php
+++ b/agc_2-X/branches/agc_2.2.0/www/vicidial/AST_agent_timeclock_detail.php
@@ -145,6 +145,7 @@ if ( (ereg("--ALL--",$user_group_string) ) or ($user_group_ct < 1) )
{$user_group_SQL = "";}
else
{
+ $TCuser_group_SQL = $user_group_SQL;
$user_group_SQL = eregi_replace(",$",'',$user_group_SQL);
$user_group_SQL = "and vicidial_agent_log.user_group IN($user_group_SQL)";
$TCuser_group_SQL = eregi_replace(",$",'',$TCuser_group_SQL);
@@ -636,7 +637,7 @@ else
$o=0;
while ($user_groups_to_print > $o)
{
- if (eregi("$user_groups[$o]\|",$user_group_string)) {echo "\n";}
+ if (eregi("\|$user_groups[$o]\|",$user_group_string)) {echo "\n";}
else {echo "\n";}
$o++;
}
diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_timeclock_detail.php b/agc_2-X/trunk/www/vicidial/AST_agent_timeclock_detail.php
index e8d0b8b8..e3d7b036 100644
--- a/agc_2-X/trunk/www/vicidial/AST_agent_timeclock_detail.php
+++ b/agc_2-X/trunk/www/vicidial/AST_agent_timeclock_detail.php
@@ -145,6 +145,7 @@ if ( (ereg("--ALL--",$user_group_string) ) or ($user_group_ct < 1) )
{$user_group_SQL = "";}
else
{
+ $TCuser_group_SQL = $user_group_SQL;
$user_group_SQL = eregi_replace(",$",'',$user_group_SQL);
$user_group_SQL = "and vicidial_agent_log.user_group IN($user_group_SQL)";
$TCuser_group_SQL = eregi_replace(",$",'',$TCuser_group_SQL);
@@ -636,7 +637,7 @@ else
$o=0;
while ($user_groups_to_print > $o)
{
- if (eregi("$user_groups[$o]\|",$user_group_string)) {echo "\n";}
+ if (eregi("\|$user_groups[$o]\|",$user_group_string)) {echo "\n";}
else {echo "\n";}
$o++;
}