mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-04-28 02:31:54 +00:00
Catch not numeric numbers
This commit is contained in:
@@ -143,7 +143,7 @@ final class AmountController extends Controller
|
||||
/** @var Account $account */
|
||||
foreach ($piggyBank->accounts as $account) {
|
||||
$amount = (string) ($amounts[$account->id] ?? '0');
|
||||
if ('' === $amount || 0 === bccomp($amount, '0')) {
|
||||
if ('' === $amount || !is_numeric($amount) || 0 === bccomp($amount, '0')) {
|
||||
continue;
|
||||
}
|
||||
if (-1 === bccomp($amount, '0')) {
|
||||
|
||||
Reference in New Issue
Block a user