fixed single-quote bug in comments in vdc_db_query.php

fixed manual dial hopper priority bug in vdc_db_query.php

git-svn-id: svn://192.168.202.10@928 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2008-07-23 02:49:46 +00:00
parent d96999a37c
commit b9e4b3ed47
2 changed files with 6 additions and 6 deletions
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
else
{
### grab the next lead in the hopper for this campaign and reserve it for the user
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
if ($DB) {echo "$stmt\n";}
$rslt=mysql_query($stmt, $link);
$affected_rows = mysql_affected_rows($link);
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
$alt_phone = trim("$row[26]");
$email = trim("$row[27]");
$security = trim("$row[28]");
$comments = trim("$row[29]");
$comments = stripslashes(trim("$row[29]"));
$called_count = trim("$row[30]");
}
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
$alt_phone = trim("$row[26]");
$email = trim("$row[27]");
$security = trim("$row[28]");
$comments = trim("$row[29]");
$comments = stripslashes(trim("$row[29]"));
$called_count = trim("$row[30]");
}
+3 -3
View File
@@ -635,7 +635,7 @@ if ($ACTION == 'manDiaLnextCaLL')
else
{
### grab the next lead in the hopper for this campaign and reserve it for the user
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
if ($DB) {echo "$stmt\n";}
$rslt=mysql_query($stmt, $link);
$affected_rows = mysql_affected_rows($link);
@@ -693,7 +693,7 @@ if ($ACTION == 'manDiaLnextCaLL')
$alt_phone = trim("$row[26]");
$email = trim("$row[27]");
$security = trim("$row[28]");
$comments = trim("$row[29]");
$comments = stripslashes(trim("$row[29]"));
$called_count = trim("$row[30]");
}
@@ -1851,7 +1851,7 @@ if ($ACTION == 'VDADcheckINCOMING')
$alt_phone = trim("$row[26]");
$email = trim("$row[27]");
$security = trim("$row[28]");
$comments = trim("$row[29]");
$comments = stripslashes(trim("$row[29]"));
$called_count = trim("$row[30]");
}