Fix TypeError: count() in PHP8 (#556)

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
This commit is contained in:
Niklas 2022-12-06 09:44:45 +01:00 committed by GitHub
parent 6da8a0f8b6
commit 29c3748b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19719,7 +19719,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
$table_el = $dom[($dom[$key]['parent'])];
}
// for each row
if (count($table_el['trids']) > 0) {
if (!empty($table_el['trids'])) {
unset($xmax);
}
foreach ($table_el['trids'] as $j => $trkey) {