Fixed deprecated each() function in PHP 7.2 (fpdi.php). @apmuthu.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Oct 2018 07:14:24 +0000 (09:14 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Oct 2018 07:14:24 +0000 (09:14 +0200)
reporting/includes/fpdi/fpdi.php

index 4b78389d60bc0e40c2a795d07c4bc40a5ee907dd..d9ab7ced482db3fc0c18b413398c101b3e693be9 100644 (file)
@@ -393,7 +393,7 @@ class FPDI extends FPDF_TPL {
 
                        reset ($value[1]);
 
-                       while (list($k, $v) = each($value[1])) {
+                       foreach ($value[1] as $k => $v) {
                                $this->_out($k . " ",false);
                                $this->pdf_write_value($v);
                        }