Skip to content

Commit

Permalink
Division by zero fix
Browse files Browse the repository at this point in the history
Division by zero fix
  • Loading branch information
hidonet authored and tmotyl committed Oct 19, 2018
1 parent b436b30 commit 718e618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions magmi/engines/magmi_productimportengine.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,7 @@ public function processDataSourceLine($item, $rstep, &$tstart, &$tdiff, &$lastdb
$res = array("ok" => 0, "last" => 0);
$canceled = false;
$this->_current_row++;
if ($rstep == 0) {$rstep = 1;}
if ($this->_current_row % $rstep == 0)
{
$this->reportStats($this->_current_row, $tstart, $tdiff, $lastdbtime, $lastrec);
Expand Down

0 comments on commit 718e618

Please sign in to comment.