Should not have edited that code. #133

This commit is contained in:
James Cole 2015-12-24 09:50:16 +01:00
parent 2faae83912
commit 8bab9e84e2

View File

@ -129,8 +129,10 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
foreach ($entries as $entry) {
$array = [
'label' => $entry[0]->formatLocalized($format),
'data' => array_shift($entry),
'data' => [],
];
array_shift($entry);
$array['data'] = $entry;
$data['datasets'][] = $array;
}