mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Cast to string.
This commit is contained in:
@@ -536,7 +536,7 @@ trait TransactionValidation
|
|||||||
if ('' === $transaction['foreign_amount']) {
|
if ('' === $transaction['foreign_amount']) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (0 === bccomp('0', $transaction['foreign_amount'])) {
|
if (0 === bccomp('0', (string) $transaction['foreign_amount'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user