If the first field of a row is empty, ie the row is of the form:

,2nd,3rd,4th

then this value gets skipped, and '2nd' shows as the value for the first field, etc

Comments

solimeno’s picture

Assigned: Unassigned » solimeno

I'll have a go at this ... my first attempt at fixing things, so be kind, patient, understanding, etc.

I've been using this module for some time and found that I encountered this problem too, so it is high time I get involved ...

Robrecht Jacques’s picture

Status: Active » Fixed

Fixed. Will be included in the next release of node_import (5.x-1.7). Thanks!

solimeno’s picture

Thank You!

I had been focusing on the foreach() loop where you applied the fix, but with my lack of experience in coding I was struggling to figure out how to detect a missing (null) value as the first array element after the header row.

Nice solution, and I learned something new today.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.