Fix XLSX bug with empty rows

This commit is contained in:
Chris Graham 2015-03-22 19:03:32 +00:00
parent 623b785a4d
commit d2029a084f

View File

@ -121,6 +121,11 @@ EOD;
*/
public function addRow($dataRow)
{
if (count($dataRow) == 0) {
// Without this fix, we get a repair issue in regular Microsoft Excel
$dataRow=array('');
}
$cellNumber = 0;
$rowIndex = $this->lastWrittenRowIndex + 1;
$numCells = count($dataRow);