Skip to content

Commit ef38f29

Browse files
author
Thomas Rehn
committed
fix for PHP7 compatibility
1 parent 5879cb2 commit ef38f29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

magmi/engines/magmi_productimportengine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ public function processDataSourceLine($item, $rstep, &$tstart, &$tdiff, &$lastdb
17931793
$res = array("ok"=>0,"last"=>0);
17941794
$canceled = false;
17951795
$this->_current_row++;
1796-
if ($this->_current_row % $rstep == 0) {
1796+
if (!$rstep || $this->_current_row % $rstep == 0) {
17971797
$this->reportStats($this->_current_row, $tstart, $tdiff, $lastdbtime, $lastrec);
17981798
}
17991799
try {

0 commit comments

Comments
 (0)