Fix XLSX bug with empty rows
This commit is contained in:
parent
623b785a4d
commit
d2029a084f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user