diff --git a/classes/Product.php b/classes/Product.php index 64b742507..1ed9e1fba 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -5393,7 +5393,8 @@ class ProductCore extends ObjectModel Pack::deleteItems($this->id); foreach ($items as $item) - Pack::addItem($this->id, (int)$item['id'], (int)$item['quantity']); + if((int)$item['id'] > 0) + Pack::addItem($this->id, (int)$item['id'], (int)$item['quantity']); return true; } }