From: Tim Otten Date: Tue, 6 Jan 2015 22:56:56 +0000 (-0800) Subject: INFRA-132 - CRM/Import - Misc X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bd5d7c2baf867fc939f22cbf29911e26d335b66b;p=civicrm-core.git INFRA-132 - CRM/Import - Misc --- 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"; } }