From 4ad9081b5ab8703543becc465aef71244302f953 Mon Sep 17 00:00:00 2001 From: Thomas Rehn Date: Sat, 8 Oct 2016 08:19:11 +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 cbdd613f..3671286f 100755 --- a/magmi/engines/magmi_productimportengine.php +++ b/magmi/engines/magmi_productimportengine.php @@ -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); }