Skip to content

Commit

Permalink
Merge pull request #10924 from MegaphoneJon/CRM-21129
Browse files Browse the repository at this point in the history
CRM-21129 - CLI API CSV import doesn't allow single-column CSVs
  • Loading branch information
eileenmcnaughton authored Aug 31, 2017
2 parents db52a21 + b1682b5 commit 13c55bc
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 13c55bc

Please sign in to comment.