spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.68k stars 751 forks source link

Array countable issue (solution) #779

Open svacant opened 1 year ago

svacant commented 1 year ago

On line 5420 and line 5296

example

$nbTrCurrs = count((array)self::$_tables[$param['num']]['cases'][self::$_tables[$param['num']]['tr_curr']-1]);

casting as array is needed for successful rendering