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