From 0b8f7417472a9e00bee21da4047dd5f6ff1cc9e8 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 24 Mar 2010 20:15:54 +0000 Subject: [PATCH] Fixed small bug in AST_agent_timeclosk_detail.php script git-svn-id: svn://192.168.202.10@1386 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../agc_2.2.0/www/vicidial/AST_agent_timeclock_detail.php | 3 ++- agc_2-X/trunk/www/vicidial/AST_agent_timeclock_detail.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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++; }