From: Joe Hunt Date: Fri, 26 Oct 2018 07:14:24 +0000 (+0200) Subject: Fixed deprecated each() function in PHP 7.2 (fpdi.php). @apmuthu. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=33c457f253099a4207e652452bf11868b8f0a3ec;p=fa-stable.git Fixed deprecated each() function in PHP 7.2 (fpdi.php). @apmuthu. --- diff --git a/reporting/includes/fpdi/fpdi.php b/reporting/includes/fpdi/fpdi.php index 4b78389d..d9ab7ced 100644 --- a/reporting/includes/fpdi/fpdi.php +++ b/reporting/includes/fpdi/fpdi.php @@ -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); }