Message: The each() function is deprecated. This message will be suppressed on further calls

Since php version 7.2 the each() function is deprecated
Find all while loop with each() function in the reporting/includes/tcpdf.php and modify them to foreach loop.
Example:

while (list($id, $name) = each($attr_array[1])) {
    $dom[$key]['attribute'][strtolower($name)] = $attr_array[2][$id];
}

need to be

foreach ($attr_array[1] as $id => $name) {
    $dom[$key]['attribute'][strtolower($name)] = $attr_array[2][$id];
}

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *