$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 );
}
$leadFormat[] = '%s';
}
}
- // echo '<pre>$leadData: ' . print_r( $leadData, true ) . '</pre>';
- // echo '<pre>$leadId: ' . print_r( $leadId, true ) . '</pre>';
- // return false;
if ( isset( $leadData ) && !empty( $leadData ) ) {
$leadData['cleaned'] = true;
$leadFormat[] = '%s';