small fix to allow for as few as 2 fields in a list file through the wwb-based lead loader.

git-svn-id: svn://192.168.202.10@1488 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2010-07-29 17:47:49 +00:00
parent 6475c589d5
commit 1cb8d88218
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -508,7 +508,7 @@ if ($OK_to_process)
if ($tab_count>$pipe_count) {$delimiter="\t"; $delim_name="tab";} else {$delimiter="|"; $delim_name="pipe";}
$field_check=explode($delimiter, $buffer);
if (count($field_check)>=5)
if (count($field_check)>=2)
{
flush();
$file=fopen("$lead_file", "r");
@@ -974,7 +974,7 @@ if (($leadfile) && ($LF_path))
$field_check=explode($delimiter, $buffer);
if (count($field_check)>=5)
if (count($field_check)>=2)
{
flush();
$file=fopen("$lead_file", "r");
@@ -1260,7 +1260,7 @@ if (($leadfile) && ($LF_path))
$rslt=mysql_query($stmt, $link);
print "<BR><BR>Done</B> GOOD: $good &nbsp; &nbsp; &nbsp; BAD: $bad &nbsp; &nbsp; &nbsp; TOTAL: $total</font></center>";
}
}
else
{
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: The file does not have the required number of fields to process it.</B></font></center>";
+2 -2
View File
@@ -420,7 +420,7 @@ echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
if ($tab_count>$pipe_count) {$delimiter="\t"; $delim_name="tab";} else {$delimiter="|"; $delim_name="pipe";}
$field_check=explode($delimiter, $buffer);
if (count($field_check)>=5) {
if (count($field_check)>=2) {
flush();
$file=fopen("$lead_file", "r");
print "<center><font face='arial, helvetica' size=3 color='#009900'><B>Processing $delim_name-delimited file...\n";
@@ -1208,7 +1208,7 @@ if ($leadfile) {
if ($tab_count>$pipe_count) {$delimiter="\t"; $delim_name="tab";} else {$delimiter="|"; $delim_name="pipe";}
$field_check=explode($delimiter, $buffer);
if (count($field_check)>=5) {
if (count($field_check)>=2) {
flush();
$file=fopen("$lead_file", "r");
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';