diff --git a/common/modules/product/models/Import.php b/common/modules/product/models/Import.php index 4d0ff70..fb188c4 100755 --- a/common/modules/product/models/Import.php +++ b/common/modules/product/models/Import.php @@ -382,7 +382,7 @@ class Import extends Model { $mod_color = $mod_arr[2]; $mod_image = $mod_arr[3]; $mod_stock = isset($mod_arr[4]) ?$mod_arr[4]:1; - $mod_cost = floatval($product_cost); + $mod_cost = isset($product_cost) ? floatval($product_cost) : 0; $mod_old_cost = floatval($product_cost_old); // Check product variant -- libgit2 0.21.4