Skip to content

Commit

Permalink
Merge pull request ipalaus#14 from brightjobs/no_timezone_header
Browse files Browse the repository at this point in the history
Skip first line when inserting time zones.
  • Loading branch information
ipalaus committed Jun 9, 2014
2 parents 7a27365 + 7bad165 commit 6087819
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ public function timezones($table, $path)

$this->parseFile($path, function($row) use ($table, $repository)
{
if ($row[0] == 'CountryCode') // skip header row
return;

$insert = array(
'country_code' => $row[0],
'id' => $row[1],
Expand Down Expand Up @@ -332,4 +335,4 @@ protected function parseFile($path, $callback)
fclose($handle);
}

}
}

0 comments on commit 6087819

Please sign in to comment.