mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
fix a null pointer
This commit is contained in:
@@ -203,8 +203,7 @@ class FrontpageChartGenerator
|
|||||||
$amount = $limit->native_amount;
|
$amount = $limit->native_amount;
|
||||||
Log::debug(sprintf('Amount is now "%s".', $amount));
|
Log::debug(sprintf('Amount is now "%s".', $amount));
|
||||||
}
|
}
|
||||||
|
$amount = null === $amount ? '0' : $amount;
|
||||||
|
|
||||||
$sumSpent = bcmul($entry['sum'], '-1'); // spent
|
$sumSpent = bcmul($entry['sum'], '-1'); // spent
|
||||||
$data[0]['entries'][$title] ??= '0';
|
$data[0]['entries'][$title] ??= '0';
|
||||||
$data[1]['entries'][$title] ??= '0';
|
$data[1]['entries'][$title] ??= '0';
|
||||||
|
Reference in New Issue
Block a user