diff --git a/intaro.retailcrm/install/index.php b/intaro.retailcrm/install/index.php index 0565be7a..529a69ae 100644 --- a/intaro.retailcrm/install/index.php +++ b/intaro.retailcrm/install/index.php @@ -591,7 +591,12 @@ class intaro_retailcrm extends CModule } else { $finish = (int)$_POST['finish']; } - $percent = round(100 - ($countLeft * 100 / $countAll), 1); + + if (!$countAll) { + $percent = 100; + } else { + $percent = round(100 - ($countLeft * 100 / $countAll), 1); + } if (!$countLeft) { $finish = 1;