Commit 13c55bcd authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #10924 from MegaphoneJon/CRM-21129

CRM-21129 - CLI API CSV import doesn't allow single-column CSVs
parents db52a214 b1682b59
......@@ -418,9 +418,6 @@ class civicrm_cli_csv_file extends civicrm_cli {
$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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment