From 33c457f253099a4207e652452bf11868b8f0a3ec Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 26 Oct 2018 09:14:24 +0200 Subject: [PATCH] Fixed deprecated each() function in PHP 7.2 (fpdi.php). @apmuthu. --- reporting/includes/fpdi/fpdi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2