Fix division by zero. [skip ci]

This commit is contained in:
James Cole
2017-08-21 08:48:02 +02:00
parent f1a7f30167
commit 55b1c533cf

View File

@@ -343,6 +343,9 @@ class TagRepository implements TagRepositoryInterface
if ($diff != 0) {
$step = $amountDiff / $diff;
}
if ($step == 0) {
$step = 1;
}
$extra = round($amount / $step);