diff --git a/magmi/engines/magmi_productimportengine.php b/magmi/engines/magmi_productimportengine.php index 120a2b9e..9e53421a 100755 --- a/magmi/engines/magmi_productimportengine.php +++ b/magmi/engines/magmi_productimportengine.php @@ -1138,7 +1138,10 @@ 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 ($rstep == 0) + { + $rstep = 1; + } if ($this->_current_row % $rstep == 0) { $this->reportStats($this->_current_row, $tstart, $tdiff, $lastdbtime, $lastrec); diff --git a/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php b/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php index eaaad0ee..3d9011b5 100644 --- a/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php +++ b/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php @@ -118,11 +118,11 @@ public function buildSAPTable($sapdesc) public function processItemBeforeId(&$item, $params = null) { // if item is not configurable, nothing to do - if ($item["type"] !== "configurable") { + if (isset($item["type"]) && $item["type"] !== "configurable") { return true; } if ($this->_use_defaultopc || - ($item["options_container"] != "container1" && $item["options_container"] != "container2")) { + ($item["options_container"] !== "container1" && $item["options_container"] !== "container2")) { $item["options_container"] = "container2"; } // reset option price info