Fix bug if there's no row
modifié: core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php
This commit is contained in:
@@ -84,6 +84,10 @@ class CSVFormatter extends AbstractFormatter
|
|||||||
$delimiterLength = strlen($this->delimiter);
|
$delimiterLength = strlen($this->delimiter);
|
||||||
$lineReturnLength = strlen($this->lineReturn);
|
$lineReturnLength = strlen($this->lineReturn);
|
||||||
|
|
||||||
|
if ($firstRow === null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check if $this->order doesn't have non-existing rows
|
* check if $this->order doesn't have non-existing rows
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user