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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user