From b1682b59e2ac4f1afb48ee9a6ac53b9ea0e3abfe Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Wed, 30 Aug 2017 14:47:16 -0400 Subject: [PATCH] CRM-21129 - CLI API CSV import doesn't allow single-column CSVs --- bin/cli.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/cli.class.php b/bin/cli.class.php index 5020e8171ba4..195792554074 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -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;