Fix undefined offset

This commit is contained in:
Gilbert Paquin 2017-07-31 01:32:57 -04:00
parent 04d9fe30eb
commit d51ca23bb4

View File

@ -368,6 +368,7 @@
<?php <?php
$summary = []; $summary = [];
if(count(array_values($reportTotals))) {
$summary[] = array_merge([ $summary[] = array_merge([
trans("texts.totals") trans("texts.totals")
], array_map(function ($key) { ], array_map(function ($key) {
@ -375,6 +376,7 @@
'style' => 'tableHeader' 'style' => 'tableHeader'
]; ];
}, array_keys(array_values(array_values($reportTotals)[0])[0]))); }, array_keys(array_values(array_values($reportTotals)[0])[0])));
}
foreach ($reportTotals as $currencyId => $each) { foreach ($reportTotals as $currencyId => $each) {
foreach ($each as $dimension => $val) { foreach ($each as $dimension => $val) {