mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 09:52:20 +00:00
Fix division by zero. [skip ci]
This commit is contained in:
@@ -343,6 +343,9 @@ class TagRepository implements TagRepositoryInterface
|
|||||||
if ($diff != 0) {
|
if ($diff != 0) {
|
||||||
$step = $amountDiff / $diff;
|
$step = $amountDiff / $diff;
|
||||||
}
|
}
|
||||||
|
if ($step == 0) {
|
||||||
|
$step = 1;
|
||||||
|
}
|
||||||
$extra = round($amount / $step);
|
$extra = round($amount / $step);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user