mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Fix null pointer
This commit is contained in:
@@ -179,7 +179,7 @@ class AccountTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
// no currency? use default
|
// no currency? use default
|
||||||
$currency = $this->default;
|
$currency = $this->default;
|
||||||
if (array_key_exists($id, $this->accountMeta) && 0 !== (int)$this->accountMeta[$id]['currency_id']) {
|
if (array_key_exists($id, $this->accountMeta) && 0 !== (int)($this->accountMeta[$id]['currency_id'] ?? 0)) {
|
||||||
$currency = $this->currencies[(int)$this->accountMeta[$id]['currency_id']];
|
$currency = $this->currencies[(int)$this->accountMeta[$id]['currency_id']];
|
||||||
}
|
}
|
||||||
// amounts and calculation.
|
// amounts and calculation.
|
||||||
|
Reference in New Issue
Block a user