#13380 fixed error 500

This commit is contained in:
Daniel Cebrian 2024-04-08 13:15:56 +02:00
parent 14f2e10fee
commit bde32eb8f8
1 changed files with 1 additions and 1 deletions

View File

@ -2644,7 +2644,7 @@ function reporting_html_inventory($table, $item, $pdf=0)
} else {
// Grouped type inventory.
$type_modules = array_reduce(
$item['data'],
($item['data'] ?? []),
function ($carry, $it) {
$carry[$it['name']][] = $it;
return $carry;