fix tcpdi.php each to foreach
This commit is contained in:
parent
0c2cf9980d
commit
9fc6be78e0
@ -188,7 +188,10 @@ with:
|
|||||||
with
|
with
|
||||||
} elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1]) >= 2)) {
|
} 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:
|
JSGANTT:
|
||||||
--------
|
--------
|
||||||
|
|||||||
@ -483,7 +483,7 @@ class TCPDI extends FPDF_TPL {
|
|||||||
|
|
||||||
reset ($value[1]);
|
reset ($value[1]);
|
||||||
|
|
||||||
while (list($k, $v) = each($value[1])) {
|
foreach ($value[1] as $k => $v) {
|
||||||
$this->_straightOut($k . ' ');
|
$this->_straightOut($k . ' ');
|
||||||
$this->pdf_write_value($v);
|
$this->pdf_write_value($v);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user