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 e4e4503 commit c0b26fd
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 @@ -1792,7 +1792,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);
}
try {
Expand Down

0 comments on commit c0b26fd

Please sign in to comment.