small bug fix to vcd_db_query.php
git-svn-id: svn://192.168.202.10@107 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1183,7 +1183,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
|||||||
### If CALLBK, change vicidial_callback record to INACTIVE
|
### If CALLBK, change vicidial_callback record to INACTIVE
|
||||||
if (eregi("CALLBK|CBHOLD", $dispo))
|
if (eregi("CALLBK|CBHOLD", $dispo))
|
||||||
{
|
{
|
||||||
$stmt="UPDATE vicidial_callbacks set status='INACTIVE' where lead_id='$lead_id';";
|
$stmt="UPDATE vicidial_callbacks set status='INACTIVE' where lead_id='$lead_id' and status NOT IN('INACTIVE','DEAD','ARCHIVE');";
|
||||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user