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:
mattf
2006-08-02 01:51:35 +00:00
parent 4c6b7edf7a
commit fb913079e8
+1 -1
View File
@@ -1183,7 +1183,7 @@ if ($ACTION == 'VDADcheckINCOMING')
### If CALLBK, change vicidial_callback record to INACTIVE
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 -->";}
$rslt=mysql_query($stmt, $link);
}