#13376 fixed report

This commit is contained in:
Daniel Cebrian 2024-04-08 18:02:03 +02:00
parent ad78d1632e
commit 1ef2c5a1e9
2 changed files with 4 additions and 3 deletions

View File

@ -3352,8 +3352,8 @@ function reporting_inventory($report, $content, $type)
$date,
'',
false,
'csv',
false,
'csv',
'',
[],
$inventory_regular_expression
@ -3367,12 +3367,13 @@ function reporting_inventory($report, $content, $type)
$date,
'',
false,
'hash',
false,
'hash',
'',
[],
$inventory_regular_expression
);
break;
}

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;