From c0b26fd8a5740d28e5f0438650ffa8e9e99b3420 Mon Sep 17 00:00:00 2001 From: Thomas Rehn Date: Mon, 18 Jul 2016 15:51:52 +0200 Subject: [PATCH] fix for PHP7 compatibility --- magmi/engines/magmi_productimportengine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magmi/engines/magmi_productimportengine.php b/magmi/engines/magmi_productimportengine.php index cdc6c640..8573726f 100755 --- a/magmi/engines/magmi_productimportengine.php +++ b/magmi/engines/magmi_productimportengine.php @@ -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 {