fix tcpdi.php each to foreach

This commit is contained in:
lmarcouiller 2021-10-18 15:26:18 +02:00
parent 0c2cf9980d
commit 9fc6be78e0
2 changed files with 5 additions and 2 deletions

View File

@ -188,7 +188,10 @@ with:
with
} elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1]) >= 2)) {
* Fix php fatal error on php 8.0 on tcpdi.php
while (list($k, $v) = each($value[1])) {
with
foreach ($value[1] as $k => $v) {
JSGANTT:
--------

View File

@ -483,7 +483,7 @@ class TCPDI extends FPDF_TPL {
reset ($value[1]);
while (list($k, $v) = each($value[1])) {
foreach ($value[1] as $k => $v) {
$this->_straightOut($k . ' ');
$this->pdf_write_value($v);
}