Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
[BUGFIX] Backend CSV export parseCSV warning
Browse files Browse the repository at this point in the history
Can not count null in parsecsv.lib.php line 353
Decided against parsecsv upgrade.
  • Loading branch information
7elix committed May 6, 2019
1 parent de5cae9 commit bced859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function exportAction($logDataUids = null, array $fields, $filetype = '')
} elseif ($filetype === 'csv') {
$className = $this->utilityFuncs->getPreparedClassName(
$this->settings['csv'],
'\Typoheads\Formhandler\Generator\BackendCsv'
\Typoheads\Formhandler\Generator\BackendCsv::class
);

$generator = $this->componentManager->getComponent($className);
Expand Down
2 changes: 1 addition & 1 deletion Classes/Generator/BackendCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function process()
$data = $dataSorted;

// create new parseCSV object.
$csv = new \parseCSV();
$csv = new \parseCSV(null, null, null, []);
$csv->delimiter = $csv->output_delimiter = $this->settings['delimiter'];
$csv->enclosure = $this->settings['enclosure'];
$csv->input_encoding = strtolower($this->getInputCharset());
Expand Down

0 comments on commit bced859

Please sign in to comment.