From be1fde88a125d2d002d4fb4a3a0167f3950815dd Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 20 May 2019 14:39:46 -0400 Subject: [PATCH] Fix for uptra lead import file Fixing how file is read. --- models/admin/leads/index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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'; -- 2.17.1