fix for AST_VDadapt.pl issue
git-svn-id: svn://192.168.202.10@2918 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -691,6 +691,21 @@ while ($master_loop < $CLIloops)
|
||||
|
||||
if ($ICBQcount > 0)
|
||||
{
|
||||
$vci=0;
|
||||
$INBOUNDcampsSQL="''";
|
||||
$stmtA = "SELECT campaign_id FROM vicidial_campaigns where active='Y' and campaign_allow_inbound='Y';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
while ($sthArows > $vci)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
if ($vci < 1) {$INBOUNDcampsSQL = "'$aryA[0]'";}
|
||||
else {$INBOUNDcampsSQL .= ",'$aryA[0]'";}
|
||||
$vci++;
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
$now_epoch = time();
|
||||
$BDtarget = ($now_epoch - 7);
|
||||
($Bsec,$Bmin,$Bhour,$Bmday,$Bmon,$Byear,$Bwday,$Byday,$Bisdst) = localtime($BDtarget);
|
||||
|
||||
Reference in New Issue
Block a user