Fixed small issues in nanpa filter scripts with the exclude options

git-svn-id: svn://192.168.202.10@2038 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2013-10-17 10:30:12 +00:00
parent 31d58ee829
commit e05bea9efa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ if ($output_to_db)
@phones=@MT;
$excludeSQL='';
if ( (length($exclude_field) > 1) && (length($exclude_value) > 1) )
if ( (length($exclude_field) > 1) && (length($exclude_value) > 0) )
{
if (length($list_idSQL) > 5)
{
+2 -2
View File
@@ -271,7 +271,7 @@ if (!%six_digit_wireless_hash) {&CompilePrefixHashes;}
@phones=@MT;
$excludeSQL='';
if ( (length($exclude_field) > 1) && (length($exclude_value) > 1) )
if ( (length($exclude_field) > 1) && (length($exclude_value) > 0) )
{
if (length($list_idSQL) > 5)
{
@@ -283,7 +283,7 @@ if ( (length($exclude_field) > 1) && (length($exclude_value) > 1) )
}
}
$stmtA = "SELECT lead_id,phone_number from vicidial_list $list_idSQL;";
$stmtA = "SELECT lead_id,phone_number from vicidial_list $list_idSQL $excludeSQL;";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows=$sthA->rows;