Reference to unknown chart.

This commit is contained in:
James Cole
2018-08-28 14:20:04 +02:00
parent e1c829f4fa
commit 40ca72c656
2 changed files with 17 additions and 6 deletions

View File

@@ -298,7 +298,7 @@ class AccountController extends Controller
foreach ($result as $row) {
$categoryId = $row['category_id'];
$name = $names[$categoryId];
$name = $names[$categoryId] ?? '(unknown)';
$label = (string)trans('firefly.name_in_currency', ['name' => $name, 'currency' => $row['currency']]);
$chartData[$label] = $row['total'];
}