Loading src/Service/Importer.php +12 −2 Changes for src/Service/Importer.php: 12 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -75,7 +75,12 @@ class Importer { return FALSE; } $rows = array_map('str_getcsv', file($filepath)); if ($fh = fopen($filepath, "r")) { while ($row = fgetcsv($fh)) { $rows[] = $row; } fclose($fh); } $header = array_shift($rows); // Remove empty lines. Loading Loading @@ -161,7 +166,12 @@ class Importer { return $errors; } $rows = array_map('str_getcsv', file($filepath)); if ($fh = fopen($filepath, "r")) { while ($row = fgetcsv($fh)) { $rows[] = $row; } fclose($fh); } $header = array_shift($rows); $header_error = NULL; Loading Loading
src/Service/Importer.php +12 −2 Changes for src/Service/Importer.php: 12 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -75,7 +75,12 @@ class Importer { return FALSE; } $rows = array_map('str_getcsv', file($filepath)); if ($fh = fopen($filepath, "r")) { while ($row = fgetcsv($fh)) { $rows[] = $row; } fclose($fh); } $header = array_shift($rows); // Remove empty lines. Loading Loading @@ -161,7 +166,12 @@ class Importer { return $errors; } $rows = array_map('str_getcsv', file($filepath)); if ($fh = fopen($filepath, "r")) { while ($row = fgetcsv($fh)) { $rows[] = $row; } fclose($fh); } $header = array_shift($rows); $header_error = NULL; Loading