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:
@@ -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 BAD: $bad 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>";
|
||||
|
||||
@@ -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='';
|
||||
|
||||
Reference in New Issue
Block a user