Fix bug if there's no row

modifié:         core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php
This commit is contained in:
Benjamin Perche
2014-08-01 16:28:40 +02:00
parent 373840240b
commit 81454c047d

View File

@@ -84,6 +84,10 @@ class CSVFormatter extends AbstractFormatter
$delimiterLength = strlen($this->delimiter);
$lineReturnLength = strlen($this->lineReturn);
if ($firstRow === null) {
return "";
}
/**
* check if $this->order doesn't have non-existing rows
*/