mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Fix #1616
This commit is contained in:
@@ -360,7 +360,8 @@ class MetaPieChart implements MetaPieChartInterface
|
|||||||
foreach ($array as $objectId => $amount) {
|
foreach ($array as $objectId => $amount) {
|
||||||
if (!isset($names[$objectId])) {
|
if (!isset($names[$objectId])) {
|
||||||
$object = $repository->findNull((int)$objectId);
|
$object = $repository->findNull((int)$objectId);
|
||||||
$names[$objectId] = $object->name ?? $object->tag;
|
$name = null === $object ? '(no name)' : $object->name;
|
||||||
|
$names[$objectId] = $name ?? $object->tag;
|
||||||
}
|
}
|
||||||
$amount = app('steam')->positive($amount);
|
$amount = app('steam')->positive($amount);
|
||||||
$this->total = bcadd($this->total, $amount);
|
$this->total = bcadd($this->total, $amount);
|
||||||
|
Reference in New Issue
Block a user