Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 3a1a7eb

Browse files
author
Joan He
committed
Merge branch 'libs-upgrade' of https://github.com/magento-engcom/php-7.2-support into libs-upgrade
2 parents bf90dba + 7d5bae7 commit 3a1a7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Observer/AddToCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function execute(Observer $observer)
7676
$wishlistIds = [$singleWishlistId];
7777
}
7878

79-
if (count($wishlistIds) && $request->getParam('wishlist_next')) {
79+
if (is_array($wishlistIds) && count($wishlistIds) && $request->getParam('wishlist_next')) {
8080
$wishlistId = array_shift($wishlistIds);
8181

8282
if ($this->customerSession->isLoggedIn()) {

0 commit comments

Comments
 (0)