fix error during installation when orders count equals zero (#130)
This commit is contained in:
parent
5d49d16955
commit
b19c857cc3
@ -591,7 +591,12 @@ class intaro_retailcrm extends CModule
|
||||
} else {
|
||||
$finish = (int)$_POST['finish'];
|
||||
}
|
||||
|
||||
if (!$countAll) {
|
||||
$percent = 100;
|
||||
} else {
|
||||
$percent = round(100 - ($countLeft * 100 / $countAll), 1);
|
||||
}
|
||||
|
||||
if (!$countLeft) {
|
||||
$finish = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user