diff --git a/classes/Pack.php b/classes/Pack.php index 635335a7a..c06b9c003 100644 --- a/classes/Pack.php +++ b/classes/Pack.php @@ -113,8 +113,7 @@ class PackCore extends Product foreach ($items as $item) { // Updated for 1.5.0 - if (Product::getQuantity($item->id) < $item->pack_quantity - || (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock))) + if (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock)) return false; } return true;