Avoid warning if variable is null
This commit is contained in:
parent
d8d697c848
commit
ccf291234e
@ -47,7 +47,7 @@ class Table extends AbstractStyle
|
|||||||
$xmlWriter->endElement(); // style:style
|
$xmlWriter->endElement(); // style:style
|
||||||
|
|
||||||
$cellWidths = $style->getColumnWidths();
|
$cellWidths = $style->getColumnWidths();
|
||||||
$countCellWidths = count($cellWidths);
|
$countCellWidths = $cellWidths === null ? 0 : count($cellWidths);
|
||||||
|
|
||||||
for ($i = 0; $i < $countCellWidths; $i++) {
|
for ($i = 0; $i < $countCellWidths; $i++) {
|
||||||
$width = $cellWidths[$i];
|
$width = $cellWidths[$i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user