From 78bffda84cf88ffaa91690818458de7bcbfe2b91 Mon Sep 17 00:00:00 2001 From: Colin Mollenhour Date: Fri, 5 Jun 2020 17:39:30 -0400 Subject: [PATCH] Fix adding bundle items to cart creates recursive dependency error in PHP 7.3 Fixes #716 --- app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php b/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php index 673c6297822..9b3b9cf450b 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php +++ b/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php @@ -268,7 +268,7 @@ public function setParentItem($parentItem) if ($parentItem) { $this->_parentItem = $parentItem; // Prevent duplication of children in those are already set - if (!in_array($this, $parentItem->getChildren())) { + if (!in_array($this, $parentItem->getChildren(), true)) { $parentItem->addChild($this); } }