We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf90dba + 7d5bae7 commit 3a1a7ebCopy full SHA for 3a1a7eb
app/code/Magento/Wishlist/Observer/AddToCart.php
@@ -76,7 +76,7 @@ public function execute(Observer $observer)
76
$wishlistIds = [$singleWishlistId];
77
}
78
79
- if (count($wishlistIds) && $request->getParam('wishlist_next')) {
+ if (is_array($wishlistIds) && count($wishlistIds) && $request->getParam('wishlist_next')) {
80
$wishlistId = array_shift($wishlistIds);
81
82
if ($this->customerSession->isLoggedIn()) {
0 commit comments