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 Jul 18, 2016
1 parent 5879cb2 commit ef38f29
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 @@ -1793,7 +1793,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 ef38f29

Please sign in to comment.