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
|
||||
|
||||
$cellWidths = $style->getColumnWidths();
|
||||
$countCellWidths = count($cellWidths);
|
||||
$countCellWidths = $cellWidths === null ? 0 : count($cellWidths);
|
||||
|
||||
for ($i = 0; $i < $countCellWidths; $i++) {
|
||||
$width = $cellWidths[$i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue