Skip to content

Commit d3c247d

Browse files
author
Lennart
committed
Merge upstream/master into 2.0.0-beta1
2 parents bb710c8 + 4df3f5a commit d3c247d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

application/datamapper/csv.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function csv_export($object, $filename, $fields = '', $include_header = TRUE)
8383
if($include_header)
8484
{
8585
// Print out header line
86-
$success = fputcsv($fp, $fields);
86+
$success = fputcsv($fp, $fields, ',', '"', '');
8787
}
8888

8989
if($success)
@@ -97,7 +97,7 @@ function csv_export($object, $filename, $fields = '', $include_header = TRUE)
9797
$result[] = $o->{$f};
9898
}
9999
// output CSV-formatted line
100-
$success = fputcsv($fp, $result);
100+
$success = fputcsv($fp, $result, ',', '"', '');
101101
if(!$success)
102102
{
103103
// stop on first failure.
@@ -163,7 +163,7 @@ function csv_import($object, $filename, $fields = '', $header_row = TRUE, $callb
163163
}
164164
$columns = NULL;
165165

166-
while(($data = fgetcsv($fp)) !== FALSE)
166+
while(($data = fgetcsv($fp, 0, ',', '"', '')) !== FALSE)
167167
{
168168
// get column names
169169
if(is_null($columns))

application/libraries/datamapper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ function dmz_log_message($level, $message, array $context = array())
237237
* Nestedsets Extension:
238238
*
239239
*/
240-
241240
#[\AllowDynamicProperties]
242241
class DataMapper implements IteratorAggregate {
243242

0 commit comments

Comments
 (0)