Skip to content

Commit

Permalink
fix for PHP7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rehn committed Oct 8, 2016
1 parent 6b15f13 commit 4ad9081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magmi/engines/magmi_productimportengine.php
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ public function processDataSourceLine($item, $rstep, &$tstart, &$tdiff, &$lastdb
$res = array("ok" => 0, "last" => 0);
$canceled = false;
$this->_current_row++;
if ($this->_current_row % $rstep == 0)
if (!$rstep || $this->_current_row % $rstep == 0)
{
$this->reportStats($this->_current_row, $tstart, $tdiff, $lastdbtime, $lastrec);
}
Expand Down

0 comments on commit 4ad9081

Please sign in to comment.