From bd5d7c2baf867fc939f22cbf29911e26d335b66b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 6 Jan 2015 14:56:56 -0800 Subject: [PATCH] INFRA-132 - CRM/Import - Misc --- CRM/Import/DataSource/CSV.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Import/DataSource/CSV.php b/CRM/Import/DataSource/CSV.php index a489006f2b..854a26891c 100644 --- a/CRM/Import/DataSource/CSV.php +++ b/CRM/Import/DataSource/CSV.php @@ -116,7 +116,8 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { * * @return string name of the created table */ - private static function _CsvToTable(&$db, + private static function _CsvToTable( + &$db, $file, $headers = FALSE, $table = NULL, @@ -175,12 +176,14 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { } // CRM-4881: we need to quote column names, as they may be MySQL reserved words - foreach ($columns as & $column) { $column = "`$column`"; + foreach ($columns as & $column) { + $column = "`$column`"; } } else { $columns = array(); - foreach ($firstrow as $i => $_) { $columns[] = "col_$i"; + foreach ($firstrow as $i => $_) { + $columns[] = "col_$i"; } } -- 2.25.1