pnp4nagios icon indicating copy to clipboard operation
pnp4nagios copied to clipboard

the each() function is depricated

Open sfassotte opened this issue 6 years ago • 0 comments

No pdf generation throws error

Ubuntu 18.04 php 7.2

pnp4nagios/share/application/vendor/fpdf/fpdi.php

solution:

`*** fpdi.php.orig 2018-06-15 00:36:13.871591779 -0500 --- fpdi.php 2018-06-15 00:36:13.871591779 -0500


*** 559,565 ****

              reset ($value[1]);

! while (list($k, $v) = each($value[1])) { $this->_straightOut($k . ' '); $this->_writeValue($v); } --- 559,565 ----

              reset ($value[1]);

! foreach($value[1] as $k => $v) { $this->_straightOut($k . ' '); $this->_writeValue($v); } `

sfassotte avatar Jun 15 '18 06:06 sfassotte