Fix usage
modifié: core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php
This commit is contained in:
@@ -84,7 +84,7 @@ class CSVFormatter extends AbstractFormatter
|
||||
$delimiterLength = strlen($this->delimiter);
|
||||
$lineReturnLength = strlen($this->lineReturn);
|
||||
|
||||
if ($firstRow === null) {
|
||||
if ($firstRow === false) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -93,7 +93,6 @@ class CSVFormatter extends AbstractFormatter
|
||||
*/
|
||||
$this->checkOrders($firstRow);
|
||||
|
||||
if (false !== $firstRow) {
|
||||
$rawKeys = array_keys($firstRow);
|
||||
$keys = [];
|
||||
|
||||
@@ -128,10 +127,6 @@ class CSVFormatter extends AbstractFormatter
|
||||
$string = substr($string,0, -$delimiterLength) . $this->lineReturn;
|
||||
}
|
||||
|
||||
} else {
|
||||
$lineReturnLength = 0;
|
||||
}
|
||||
|
||||
return substr($string, 0, -$lineReturnLength);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user