diff --git a/classes/Product.php b/classes/Product.php index de39624d2..d69a28e0c 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -5377,7 +5377,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; } }