From 3c1124081bbc13df3704311a76e2d82d174ed3a8 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 3 Mar 2010 14:04:50 +0000 Subject: [PATCH] fix for issue 312, realtime drop in-group row display bug git-svn-id: svn://192.168.202.10@1359 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/AST_timeonVDADall.php | 1 + 1 file changed, 1 insertion(+) diff --git a/www/vicidial/AST_timeonVDADall.php b/www/vicidial/AST_timeonVDADall.php index b6cf6237..67db5eda 100644 --- a/www/vicidial/AST_timeonVDADall.php +++ b/www/vicidial/AST_timeonVDADall.php @@ -936,6 +936,7 @@ if ( ($DROPINGROUPstats > 0) and (!preg_match("/ALL-ACTIVE/",$group_string)) ) $dtp++; } $DIGcampaigns = preg_replace("/,$/",'',$DIGcampaigns); + if (strlen($DIGcampaigns) < 2) {$DIGcampaigns = "''";} $stmtB="select sum(calls_today),sum(drops_today),sum(answers_today) from vicidial_campaign_stats where campaign_id IN($DIGcampaigns);"; if ($DB > 0) {echo "\n|$stmtB|\n";}