From: Steve Sutton Date: Mon, 20 May 2019 18:39:46 +0000 (-0400) Subject: Fix for uptra lead import file X-Git-Tag: v1.2.2^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=be1fde88a125d2d002d4fb4a3a0167f3950815dd;p=WP-Plugins%2Fglm-member-db-leads.git Fix for uptra lead import file Fixing how file is read. --- diff --git a/models/admin/leads/index.php b/models/admin/leads/index.php index 261e6e0..c90f2d1 100644 --- a/models/admin/leads/index.php +++ b/models/admin/leads/index.php @@ -1013,7 +1013,7 @@ class GlmMembersAdmin_leads_index extends GlmDataLeadEntry $firstContact = false; // If we're past the header, the first item is numeric, and we have at least 5 fields - if( $startImport && ( $c[0]-0 ) > 0 && count( $c ) >= 5 ) { + if( $startImport && count( $c ) >= 5 ) { // Add this line of data to Contacts $contacts[] = array_combine( $headers, $c ); } @@ -1109,9 +1109,6 @@ class GlmMembersAdmin_leads_index extends GlmDataLeadEntry $leadFormat[] = '%s'; } } - // echo '
$leadData: ' . print_r( $leadData, true ) . '
'; - // echo '
$leadId: ' . print_r( $leadId, true ) . '
'; - // return false; if ( isset( $leadData ) && !empty( $leadData ) ) { $leadData['cleaned'] = true; $leadFormat[] = '%s';