Skip to content

Commit

Permalink
CRM-21129 - CLI API CSV import doesn't allow single-column CSVs
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaphoneJon committed Aug 30, 2017
1 parent 4782a39 commit b1682b5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bin/cli.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,6 @@ public function run() {
$this->separator = ";";
rewind($handle);
$header = fgetcsv($handle, 0, $this->separator);
if (count($header) == 1) {
die("Invalid file format for " . $this->_file . ". It must be a valid csv with separator ',' or ';'\n");
}
}

$this->header = $header;
Expand Down

0 comments on commit b1682b5

Please sign in to comment.