mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Catch NULL.
This commit is contained in:
@@ -106,8 +106,8 @@ class BudgetTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
'auto_budget_amount' => $abAmount,
|
'auto_budget_amount' => $abAmount,
|
||||||
'pc_auto_budget_amount' => $abPrimary,
|
'pc_auto_budget_amount' => $abPrimary,
|
||||||
'spent' => $this->beautify($budget->meta['spent']),
|
'spent' => null === $budget->meta['spent'] ? null : $this->beautify($budget->meta['spent']),
|
||||||
'pc_spent' => $this->beautify($budget->meta['pc_spent']),
|
'pc_spent' => null === $budget->meta['pc_spent'] ? null : $this->beautify($budget->meta['pc_spent']),
|
||||||
'links' => [
|
'links' => [
|
||||||
[
|
[
|
||||||
'rel' => 'self',
|
'rel' => 'self',
|
||||||
|
Reference in New Issue
Block a user