From 718e618d03a1889d8d265e3fa82e34710232b0f5 Mon Sep 17 00:00:00 2001 From: Hidayet Ok Date: Thu, 29 Jun 2017 17:22:04 +0300 Subject: [PATCH] Division by zero fix Division by zero fix --- magmi/engines/magmi_productimportengine.php | 1 + 1 file changed, 1 insertion(+) diff --git a/magmi/engines/magmi_productimportengine.php b/magmi/engines/magmi_productimportengine.php index 2d2efe16..120a2b9e 100755 --- a/magmi/engines/magmi_productimportengine.php +++ b/magmi/engines/magmi_productimportengine.php @@ -1138,6 +1138,7 @@ public function processDataSourceLine($item, $rstep, &$tstart, &$tdiff, &$lastdb $res = array("ok" => 0, "last" => 0); $canceled = false; $this->_current_row++; + if ($rstep == 0) {$rstep = 1;} if ($this->_current_row % $rstep == 0) { $this->reportStats($this->_current_row, $tstart, $tdiff, $lastdbtime, $lastrec);