pnp4nagios
pnp4nagios copied to clipboard
the each() function is depricated
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); } `