Use PHP's native fputcsv, doesn't appear to cause problems

This commit is contained in:
Nathan Gray 2011-12-05 15:56:55 +00:00
parent f57b01dd42
commit 5898109a41

View File

@ -182,7 +182,7 @@ class importexport_export_csv implements importexport_iface_export_record
} }
} }
$this->fputcsv( $this->handle, $this->record, $this->csv_options['delimiter'], $this->csv_options['enclosure'] ); fputcsv( $this->handle, $this->record, $this->csv_options['delimiter'], $this->csv_options['enclosure'] );
$this->num_of_records++; $this->num_of_records++;
} }
@ -358,6 +358,7 @@ class importexport_export_csv implements importexport_iface_export_record
/** /**
* The php build in fputcsv function is buggy, so we need an own one :-( * The php build in fputcsv function is buggy, so we need an own one :-(
* Buggy how?
* *
* @param resource $filePointer * @param resource $filePointer
* @param array $dataArray * @param array $dataArray